Please login or register. Welcome to the Studio, guest!


Quick Links:


newBookmarkLockedFalling

Llanilek

Llanilek Avatar
Former Elite Mod

****
Dedicated Studio Member

931


October 2005
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

Chris

Chris Avatar

******
Head Coder

19,519


June 2005
I'm surprised no one has submitted any of these before actually. :P Good call.

Michael

Michael Avatar
*Has a custom title*



1,462


October 2007
Don't you need to mention that they have to change the 'yoursite.com' part? ;)

Llanilek

Llanilek Avatar
Former Elite Mod

****
Dedicated Studio Member

931


October 2005
Michael Avatar
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

newBookmarkLockedFalling