Forum Moderators: DixonJones
I now use a mixture of controls in .htaccess:
1. setenvifnocase Referer "^http://([^/]*)badguy\.com" DenyIt etc.....
2. deny lots of IP addresses - deny from 202.72. etc....
3. limit get - deny from .sillysite.cable.ru etc. ....
These are working well now, but I am still getting downloads using my redirected destination site as the Referrer.
e.g.
somekindofcablehost.countrysay.it - - [09/Oct/2003:07:11:30 -0400] "GET /mysoftware.zip HTTP/1.1" 403 220 "http://myname.myhostingsite.com" "Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)"
...where [myname.myhostingsite.com...] is my redirected download site.
I am also not getting any success stopping non-referers with setenvifnocase Referer "^-$" DenyIt
The difficulty now is that goodguy download referers use other countries' cable links to download my stuff, so I can no longer use a straight ban on a particular country.
I would be pleased if anyone could offer me help here.
Welcome to WebmasterWorld [webmasterworld.com]!
Try:
SetEnvIfNoCase Referer "^-?$" DenyIt
You should be able to block those referrers from your download server. You normally refer to it, but it need not refer back to you.
Other than that, you'll just have to keep checking your logs, or go for a more sophisticated login-based approach.
Jim
All the bad guys want to download 10 to 20 at once. 95% [of the ones who are on my case] are now blocked, except the ones who use my redirected site name.
What worries me is, that if I manage to cut all the bad guys down to 2 or 3, and don't keep an eye on the logs for a couple of nights [or even go away for 4 days], one of them can run up huge bandwidth.
At present I track the IPs they come from and ban the addresses surrounding those IPs. This is not good but gives me some peace.
1) Instead of having the downloads on the site, you have them on an autoresponder, sent by Email to whoever wants it.
2) If they don't fill in a webform properly, the autoresponder doesn't send the file.
3) You could always do a type in these "random letters" trick like the overture does with its bid price monitoring tool to block non-humans (presumably if bandwidth is an issue it IS non humans.
So... no precious files on your website = no reason to attack the server.
Dixon.