View Full Version : Hotlinking - what do you do to prevent it?
AdultReviews.net
10-07-2001, 05:20 PM
Hi ppl
What do you do to prevent hotlinking of your pics?
I've done some redirecting with htaccess but it does only redirect the source to my site.
The hotlinked pic apears as a broken link.
It is possible to reload the page and get my site showen in the window?
/Tricky007
wildzero
10-07-2001, 05:56 PM
Don't think you can do that... but what you can do is put this in your htaccess:-
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG)$ http://your_server.com/bad.gif [R]
This returns another image in place of the hot linked image. So you could have a small image with your webaddress on it which is shown instead of the broken image.. try that out
AdultReviews.net
10-07-2001, 06:13 PM
wildzero
Excellent idea...
Thx for the hint.
/Tricky007
euphamon
10-07-2001, 07:29 PM
http://home.wanadoo.nl/tieten4/
look at this shit
euph
AdultReviews.net
10-07-2001, 08:02 PM
Well that's what I call hotlinking.
/Tricky007
kmanrox
10-08-2001, 01:39 AM
http://www.x3scripts.com under the free scripts section will do the trick
AdultReviews.net
10-08-2001, 07:08 AM
Originally posted by kmanrox:
<STRONG>http://www.x3scripts.com under the free scripts section will do the trick</STRONG>
That's
RewriteEngine On
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://.*yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://XX.XX.XX.XX/.*$ [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourdomain.com/ [R,L]
Well that's the code I got before. It don't give a soloution to the problem that the redirection apears as a broken image on the site which hotlink.
/Tricky007
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.