View Single Post
Old 03-16-2007, 11:50 AM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Strongbox already gives you the country, so there's no need for MaxMind.

On about line #73 on login.cgi put something like this:
if ($remote_country m/^RU|UA$/) {
print "Location: http://www.badhacks.com\n\n";
exit;
}

Some versions of Strongbox have a list of banned countries included in config.pl already,
but the above will work for any version. Remember to save a copy of the default login.cgi
any time you modify it, in case you want to go back.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote