Forum Moderators: open
I've been lurking for some time and have learned quite a lot, thanks. Are there any ASP users that can clue me in on blocking bots and or IP addresses? Since some bots can be very abusive and suck up bandwidth, I had a wild idea. Is there any way to limit the bytes transfered to any one IP? Some number low enough to stifle a bad bot or enough to prevent a server crash?
[webmasterworld.com...]
i recently asked my hosts about this (win2k) and they said they could block any ip addresses i just needed to send them my list, i assumed it was a setting on iis that could be adjusted.
If you have the resources for it,
an application level solution would work,
it cant be session based because that relies on cookies.
You'd need to be careful with your application.lock and .unlock's of course.
If you cant find/havent found anything else and really need it post back here and i'll code up something based upon bytes sent using application variables & post it to the board.
HTH,
Dw
Thanks,
Hman - The Horseman
I should point out that the internet should bring people closer, not block off areas of the world, but for now at least most servers in china act as open mail relays, so I guess it wont hurt to redirect users to somewhere else.
Here's the code you should need:
<%
'Put this in the head of a document, as early as possible...
if lcase(left(request.serverVariables("HTTP_ACCEPT_LANGUAGE"), 2)) <> "en" then
'Visitor is from somewhere that doesnt use english, redirect...
response.redirect "/errors/common/invalidLanguage.asp?"
end if
%>
HTH,
Dw
Hman - The Horseman
(Admin - Whats wrong with your server? As I'm posting this the site is so slow as to be unusable)