Quote:
|
Originally Posted by kall I have been up for the past hour trying to figure out a way of stopping some punkasses from linking to our cool smilies.
It would be fine if they were to just save it and serve it themselves, but they are just linking to us and using NZBs bandwidth.
I am trying to make .htaccess block it, but doesn't seem to be working. |
Try saving this as .htaccess in your ./images folder
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://66.194.238.6.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nzboards.com/forums.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.nzboards.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://nzboards.com.*$ [NC]
RewriteRule .*$ http://www.nzboards.com/forums/index.php [R,L]
</IfModule> Make sure the IP and all the subdomains are correct.
It should display a broken image to someone hotlinking to your images and redirect anyone trying to open them via a link on their website to your forums index.
If you have any other subdomains e.g. gallery.nzboards.com etc add them to the list of allowed sites together with any other site you want to have access to your images.