View Single Post
  #2 (permalink)  
Old 10-Jun-2004, 06:40 AM
Darkling
Darkling's Avatar
Darkling is offline
 Founder
 Karma +/- Power: 67
 Karma: Darkling is a name known to allDarkling is a name known to allDarkling is a name known to allDarkling is a name known to allDarkling is a name known to allDarkling is a name known to all (614)
 
 Local Time: 10:08 PM
 Local Date: 24-Jul-2008
 Join Date: May 2004
 Posts: 985
 Blog Entries: 1
Default Re: Damn you Bandwidth thieves!

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.

Darkling's Signature:
Reply With Quote