Forum Moderators: phranque
but a question..
how should >> !^USIP addresses$ <<
be used?
can this be explained how this works?
Back on topic: the "safe" approach would be to refer to a geotargeting database. These have become quite good. There is a handfull of suppliers, and a handfull of business models starting from free access to subscription based models. Pure country-based targeting is probably 99% accurate and can either be handled by a remote request (which becomes slow when you have huge visitor numbers) or by local database (which gets unreliable if not updated regularly).
Using a geolocation database has the advantage that the visitor can be redirected to an explanatory page (with maybe even a contact form of sorts) instead of being blocked on a web-server-errror-message level.
P.S. You - resp your friend - knows what a proxy server is?
For example, here's how you can block A-Class 60 using IPtables:-
iptables -A INPUT -p tcp -s 60.0.0.0/11 --dport 25 -j DROP
I also have entire countries blocked. "bogus" for me happens when I get a far more nuisance traffic (spam, un-authorised crawlers etc) than genuine traffic.
TJ
[edited by: trillianjedi at 11:16 am (utc) on Dec. 7, 2006]