Guys i have a little problem, i tried to find some examples on GeoIP based system that expands searches based on nearest neighbor countries. For example the visitor is from UK and tries to find IPs from France, Spain, Belgium etc. not for example Brazil, Argentina, China. So how can i get nearest countries from a given country/IP and exp...
We would like to implement slightly different behavior in our web application for those who visit from a certain state (Florida) vs. those in the rest of country (and world).
It's not critical that it be 100% accurate but well into the 90s-- it's OK if a few Floridians see the other version, and others see the Florida version.
What is...
Hi experts,
I try to install the geoip extension through SSH on my gentoo server.
I did:
emerge Geo-IP
: OK
pecl install geoip
: OK
geoiplookup www.bbc.co.uk
: gives me
GeoIP Country Edition: GB, United Kingdom
GeoIP City Edition, Rev 1: GB, N7, Tadworth, (null), 51.283298, -0.233300, 0, 0
GeoIP City Edition, Rev 0: GB,...
Hi, I have a drupal site, and i want to redirecting visitors to a different page based on the country.
I have this code:
require_once "Net/GeoIP.php";
$geoip = Net_GeoIP::getInstance("Net/GeoIP.dat");
try {
$geocode = $geoip->lookupCountryCode($_SERVER['REMOTE_ADDR']);
} catch (Exception $e) {
$geocode = 'EN';
}
switch ($geocode...
I have a resource .../releases/343/file/21 Depending from where the user access the resource I need to implement a geo balancing mechanism, so I redirect him to a static web server or another. I have something like this :
URI uri;
if( is_near(user, us) )
uri = URI.create("http://us.static.myserver.com/myfile.tar.gz");
...
I have plenty of bots accessing the site trying to find holes and stuff like that, so my idea was to block all non .se visitors (i dont mind google getting blocked either), that part works like a charm, but the response is 200, but i would like to give them 404 instead, any ideas?
I have this in my apache.conf
<IfModule mod_security2.c...
Is there a way to get mod_geoip working when Apache 2.2 is running in fcgid mode?
I just installed it but get the following php error when I try a test:
Fatal error: Call to undefined function apache_note() in /var/www/abc.com/geoip/index.php on line 4
...