|
Using .htaccess to block hotlinking. RewriteEngine On RewriteBase / RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?yoursite.com/.*$ [NC] RewriteRule \.(gif|jpg|png)$ http://www.yoursite.com/path/to/hotlink.jpg [R=302,L]
by putting that in your directory you can stop anyone hotlinking your files basically you can put in a picture (hotlink.jpg) that says that this file has been hotlinked ... nice if your getting constantly ripped lol. edit: note you can add any file extension to this... just add the extensioin to the (gif|jpg|png) part edit2: make sure you change the yoursite.com to your actual domain [thanks wrighty] lol
Last Edit: Jan 19, 2009 20:00:40 GMT by Llanilek
|
|
|
|
|
I'm surprised no one has submitted any of these before actually. Good call.
|
|
|
|
|
Don't you need to mention that they have to change the 'yoursite.com' part?
|
|
|
|
Don't you need to mention that they have to change the 'yoursite.com' part? i think that goes without saying... but just for the people that missed that... i've edited my above post lol
|
|
|
|