Forum Moderators: phranque
Anyway, the problem is that I have a script that is getting requested quite a bit by robots. The script was previously (though briefly) exploited with e-mail form injection techniques, and although I plugged the holes right away, the script is still getting all kinds of requests.
Obviously I'd like to block these requests, and I'd just use IP banning to do that - except that many of the IP's making the requests are from the U.S., and I don't want to block them if there's any possibility of blocking legitimate U.S. visitors at the same time.
At this point, I don't even know what my questions should be. Basically I need to know what problems (if any) exist with blocking IP addresses, what I should consider when choosing which IP's to block, and that sort of thing.
Incidentally, I am logging the requests complete with the POST data so I can definitely pinpoint which requests are attempted hacks. It's just that I don't want to block any real visitors at the same time I block the bots.
Thanks in advance,
Matthew
Another test is to try a reverse DNS lookup with the command-line program nslookup which is available on most operating systems. If there is no reverse DNS entry, it is probably a single user connection. If it is a proxy or other larger system, the reverse DNS entry is most of the time present and quite informative.