RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Dissalowing hotlinking from certain sites?

0 Members and 1 Guest are viewing this topic.

*
Rise From The Ashes!
Rep:
Level 91
"Time to bring the Law!"
Project of the Month winner for September 2009
I don't know how I can add more detail to this, but how do I only allow some sites to hotlink my files?
« Last Edit: March 13, 2008, 10:22:38 AM by Tezuka »

*
( ´ิ(ꈊ) ´ิ) ((≡^⚲͜^≡)) (ી(΄◞ิ౪◟ิ‵)ʃ)
Rep:
Level 102
(っ˘ڡ˘ς) ʕ•̼͛͡•ʕ-̺͛͡•ʔ•̮͛͡•ʔ (*ꆤ.̫ꆤ*)
2014 Avast Ye Merry Pirate!2013 Avast Ye Merry Pirate Award2012 Avast Ye Merry Pirate AwardFor frequently finding and reporting spam and spam bots2011 Avast Ye Merry Pirate2011 Most Unsung Member2010 Avast Ye Merry Pirate Award
Crankeye download servers use this in the .htaccess file:

Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?crankeye\.com/ [nc]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?2drpg\.com/ [nc]
RewriteRule .*\.(zip|exe|png|wmv)$ http://crankeye.com/ [nc]

Explanation ~

Code: [Select]
RewriteCond %{HTTP_REFERER} !^$

ANY http referrer will be interpreted by the following rules

Code: [Select]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?crankeye\.com/ [nc]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?2drpg\.com/ [nc]

Here you add sites you WANT to be allowed to hotlink. The [nc] means No Condition if this is met. Basically, they get a free pass =)

Code: [Select]
RewriteRule .*\.(zip|exe|png|wmv)$ http://crankeye.com/ [nc]

Simple enough, add more file types if you like. After the $ is what you want the requests to be written to, in this case the crankeye.com frontpage =) This has an [nc] on it incase you have extra rules in your htaccess file following these. This way these ones won't be caught up in those. It's a good idea to cover your ass when you're dealing with multiple sets of rules. It can get confusing or you can get nasty server errors.

RMRK.net isn't included in the exceptions, try these to see it in action:

http://d1.crankeye.com/95.zip
http://d2.crankeye.com/95.zip
http://d3.crankeye.com/95.zip

Lol RPG Maker 95, been on them for longer than I can remember, just never added to the download page.
« Last Edit: March 13, 2008, 02:30:54 AM by Roph »
bringing sexy back

*
Rise From The Ashes!
Rep:
Level 91
"Time to bring the Law!"
Project of the Month winner for September 2009
Awesome, thanks Roph!

+rep

*
Rise From The Ashes!
Rep:
Level 91
"Time to bring the Law!"
Project of the Month winner for September 2009
Awesome!

But if say I wanted to disallow access to the domain all together, how would I do that?

*
A Random Custom Title
Rep:
Level 96
wah
Lol rmxp-like. Proxy. :V