View Full Version : help with hotlinking
drumsicle
10-08-2001, 09:51 PM
Ok this is the code I have to put in .htaccess to prevent hotlinking my pics. Does anyone know the line to add, that will redirect the page trying to hotlink, to a page of my choice?
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://nporn.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nporn.com/.*$ [NC]
RewriteRule .*\.gif$ - [G]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://nporn.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nporn.com/.*$ [NC]
RewriteRule .*\.jpg$ - [G]
drumsicle
10-08-2001, 10:09 PM
Actually this seems to work...
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://nporn.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nporn.com/.*$ [NC]
RewriteRule .*.(gif|GIF|jpg|JPG)$ http://www.nporn.com/ [R,L]
salsbury
10-09-2001, 01:58 PM
note: all that will do is cause your home page to be loaded as if it were the jpg or gif, and then on the hotlinking site they'll have a broken image. there's no way (so far) to cause the browser to go to your page from this.
your best bet is to do what someone else was talking about a couple of days ago. create a tiny .gif or .jpg file that says something like "Visit <A HREF="http://www.nporn.com/"," TARGET=_blank>http://www.nporn.com/",</A> and have the rewriterule point to that image. you'll probably spend less in bandwidth (because the .gif is probably smaller than your index) and who knows, you might get some traffic. at the very least you'll make a fool out of the hotlinker. :-)
wildzero
10-09-2001, 04:19 PM
Yea for real, be a laugh if you went to a site and you see these images saying - "Stolen from -----.com visit for real porn" guy would be like.... oh shit! Stupid fucking hot linking sluts!!
drumsicle
10-10-2001, 04:57 AM
Originally posted by salsbury:
<STRONG>note: all that will do is cause your home page to be loaded as if it were the jpg or gif, and then on the hotlinking site they'll have a broken image. there's no way (so far) to cause the browser to go to your page from this.
your best bet is to do what someone else was talking about a couple of days ago. create a tiny .gif or .jpg file that says something like "Visit <A HREF="http://www.nporn.com/"," TARGET=_blank>http://www.nporn.com/",</A> and have the rewriterule point to that image. you'll probably spend less in bandwidth (because the .gif is probably smaller than your index) and who knows, you might get some traffic. at the very least you'll make a fool out of the hotlinker. :-)</STRONG>
Thanks alot salsbury. Yeah that would kinda be like image sourcing my own site. :) I changed it thanks.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.