views:

39

answers:

1

ok so i have a couple of working codes

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://site.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://site.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.site.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|mp3|wav)$ - [F,NC]

these would prevent hotlinking from your site hmm but when i viewed my so-called gallery which displays the jpg's it disappeared..is it possible to still use the images while using hotlink protection? i was kinda wondering

A: 

You can use this tool http://www.htaccesstools.com/hotlink-protection/

jcubic
thats where i got it actually
kapitanluffy
Maybe browser didn't send referer header to the server, check in LiveHTTPHeader extension in Firefox. You can also try to add `[OR]` after `RewriteCond`
jcubic
the [OR] thing kinda work thanks :)
kapitanluffy
ok i woke up this morning then i checked on the site it seems to be not showing the images again
kapitanluffy