I recently started doing large movie galleries. Bandwidth leaching bastards have been linking directly to my .mpg file in forum posting on various message boards. Today I decided to start doing something about it.
I use a script called Reference Summary which lists all the urls linking to me along with the file that?s being linked to. I found my mpegs are currently listed at 12 different forums.
I thought my current .htaccess should be blocking this I guess not.
Here?s my current hotlink protection.
RewriteEngine On
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://100.100.100.100/.* [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff].*[Mm][Pp][Gg]$ http://www.mydomain.com/spacer.gif [R,L]
#RewriteRule /*$ http://www.mydomian/spacer.gif [L,R]
Do I have the syntax wrong? It seems to be blocking direct requests for .jpg files.
Using .htaccess how do I block access based on referrer?
Would this work?
Options -Indexes
order deny,allow
deny from leachingdomian.com
deny from 101.101.101.101 (leachingdomain?s ip)
allow from all
Any input anyone has would be greatly appreciated.
--Gel
I use a script called Reference Summary which lists all the urls linking to me along with the file that?s being linked to. I found my mpegs are currently listed at 12 different forums.
I thought my current .htaccess should be blocking this I guess not.
Here?s my current hotlink protection.
RewriteEngine On
RewriteOptions inherit
RewriteCond %{HTTP_REFERER} !^http://mydomain.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://100.100.100.100/.* [NC]
RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff].*[Mm][Pp][Gg]$ http://www.mydomain.com/spacer.gif [R,L]
#RewriteRule /*$ http://www.mydomian/spacer.gif [L,R]
Do I have the syntax wrong? It seems to be blocking direct requests for .jpg files.
Using .htaccess how do I block access based on referrer?
Would this work?
Options -Indexes
order deny,allow
deny from leachingdomian.com
deny from 101.101.101.101 (leachingdomain?s ip)
allow from all
Any input anyone has would be greatly appreciated.
--Gel


Comment