I have GeoIP installed with the following code on my Index:
Lately, a lot of Iran traffic seems to have been slipping past it. Adversal is starting to get annoyed.
include('geoip/geoip.inc'); //this file must exist in your directory
// Uncomment if querying against GeoIP/Lite City.
$gi = geoip_open('geoip/geoip.dat',GEOIP_STANDARD);
// get the ip of the visitor
$addr = getenv('REMOTE_ADDR');
// translate his ip to a country code
$country = geoip_country_name_by_addr($gi, $addr);
// close the geo database
$badcountry = array('Iran','Islamic Republic of Iran','China','Russian Federation','Saudi Arabia');
header('Location: http://www.proxlists.com'); //enter a url or page on your site
Can anybody help me out? I don't know if I'm doing something wrong.