[WTF] Maxmind geo-IP database not working today?

 

Results 1 to 8 of 8
Anyone else noticing this? I have a redirect script set up using the Maxmind database ...
  1. #1
    Grandslam is offline ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫
    Join Date
    Apr 2009
    Posts
    966
    Thanks
    824
    Thanked 293 Times in 182 Posts

    Default [WTF] Maxmind geo-IP database not working today?

    Anyone else noticing this? I have a redirect script set up using the Maxmind database and its been responding extremely slow today, and even worse, sometimes not at all.

    Usually its so fast I miss it if I blink.

    My status bar says "waiting for j.maxmind..." for at least 15 seconds and then it redirects or just freezes and the status bar goes to "Done" even though it hasn't successfully redirected. It just stops on the page I have the script set up on.

    WTF is going on? I'm losing $ every minute their database is down... I'm scrambling for another solution/script that doesn't rely on their database for geo-IP redirects...




  2. #2
    ``Yousef's Avatar
    ``Yousef is offline Power Member
    Join Date
    Oct 2009
    Location
    Cooking up the medicine.
    Posts
    535
    Thanks
    109
    Thanked 264 Times in 106 Posts

    Default Re: [WTF] Maxmind geo-IP database not working today?

    Yeah, I don't know what the fuck is up. My scripts keep breaking, and I'm wondering why, this is probably the reason.

    EDIT: Are you using their free or paid license? If it's paid, that's totally fucked up.

  3. The Following User Says Thank You to ``Yousef For This Useful Post:

    Grandslam (08-13-2011)

  4. #3
    xpwizard's Avatar
    xpwizard is offline Junior Member
    Join Date
    Nov 2010
    Posts
    198
    Thanks
    18
    Thanked 119 Times in 76 Posts

    Default Re: [WTF] Maxmind geo-IP database not working today?

    Use their self-hosted version... This way you don't need to rely on their servers.

  5. The Following User Says Thank You to xpwizard For This Useful Post:

    Grandslam (08-13-2011)

  6. #4
    Evan Foster's Avatar
    Evan Foster is offline Junior Member
    Join Date
    Mar 2011
    Posts
    169
    Thanks
    250
    Thanked 51 Times in 39 Posts

    Default Re: [WTF] Maxmind geo-IP database not working today?

    I do not think if there is some better alternate to maxmind.

  7. #5
    copxxx's Avatar
    copxxx is offline Newbies
    Join Date
    May 2008
    Location
    Frankfurt, DE
    Posts
    41
    Thanks
    3
    Thanked 9 Times in 8 Posts

    Default Re: [WTF] Maxmind geo-IP database not working today?

    I'm using the self hosted version so I don't have any similar problem, I can suggest this self-hosted ver. to you coz its just pretty good

  8. The Following User Says Thank You to copxxx For This Useful Post:

    Grandslam (08-13-2011)

  9. #6
    Grandslam is offline ♫ ♪ ♫ ♪ ♫ ♪ ♫ ♪ ♫
    Join Date
    Apr 2009
    Posts
    966
    Thanks
    824
    Thanked 293 Times in 182 Posts

    Default Re: [WTF] Maxmind geo-IP database not working today?

    Quote Originally Posted by ``Yousef View Post
    Yeah, I don't know what the fuck is up. My scripts keep breaking, and I'm wondering why, this is probably the reason.

    EDIT: Are you using their free or paid license? If it's paid, that's totally fucked up.
    Free. Still fucked up nevertheless.

    Quote Originally Posted by xpwizard View Post
    Use their self-hosted version... This way you don't need to rely on their servers.
    Quote Originally Posted by copxxx View Post
    I'm using the self hosted version so I don't have any similar problem, I can suggest this self-hosted ver. to you coz its just pretty good
    1. How much does it cost?

    2. Where do I go on their site to get it?

  10. #7
    xpwizard's Avatar
    xpwizard is offline Junior Member
    Join Date
    Nov 2010
    Posts
    198
    Thanks
    18
    Thanked 119 Times in 76 Posts

    Default Re: [WTF] Maxmind geo-IP database not working today?

    #1 - Download this file and unzip:
    Code:
    http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
    #2 - Create a file named "geoip.inc". Go to the link and include the code:
    Code:
    http://geolite.maxmind.com/download/geoip/api/php/geoip.inc
    #3 - Create a file named "geoipcity.inc". Go to the link and include the code:
    Code:
    http://geolite.maxmind.com/download/geoip/api/php/geoipcity.inc
    #4 - *OPTIONAL* - If you want State/Region data, make a file called "geoipregionvars.php", then go to the link and include the code:
    Code:
    http://geolite.maxmind.com/download/geoip/api/php/geoipregionvars.php
    #5 - Here is a demo version of the code (name file whatever you want):
    Code:
    http://geolite.maxmind.com/download/geoip/api/php/sample_city.php
    #6 - Upload all of those files into the same folder on your website... Here is a sample code to redirect by country:
    PHP Code:
    <?php
        
    // include geo lookup
        
    include("geoip.inc");
        include(
    "geoipcity.inc");
        include(
    "geoipregionvars.php");

        
    // perform geo lookup
        
    $ip $_SERVER['REMOTE_ADDR'];
        
    $gi geoip_open("./GeoLiteCity.dat"GEOIP_STANDARD);
        
    $rsGeoData geoip_record_by_addr($gi$ip);

        
    // if USA
        
    if ($rsGeoData->country_code == "US") { 
        
    header('Location: http://www.google.com/');
        }
        
    // if Canada
        
    else if ($rsGeoData->country_code == "CA") {
        
    header('Location: http://www.yahoo.com/');
        }
        
    // all other countries
        
    else {
        
    header('Location: http://www.ask.com/');
        }
    ?>
    Last edited by xpwizard; 08-13-2011 at 10:34 AM.

  11. The Following User Says Thank You to xpwizard For This Useful Post:

    Grandslam (08-13-2011)

  12. #8
    markmaster is offline Registered Member
    Join Date
    Apr 2010
    Posts
    53
    Thanks
    26
    Thanked 3 Times in 3 Posts

    Smile Re: [WTF] Maxmind geo-IP database not working today?

    Here is another solution:

    http://www.maxmind.com/app/mod_geoip


    apache mod which allows to use geoip redirection by a simple .htaccess file. Of course you also need the db saved locally...


    example:

    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(US|UK)$
    RewriteRule ^(.*)$ http://www.gohere.com$1 [L]



    Have fun!


Similar Threads

  1. C# Get Info From Database
    By jake3340 in forum C, C++, C#
    Replies: 12
    Last Post: 09-19-2011, 01:16 PM
  2. Custom Made Database sites
    By dynander in forum SEO - Link building
    Replies: 6
    Last Post: 01-29-2011, 05:31 PM
  3. IMPORTANT ANNOUNCEMENT (and Special): From, SendBulkEmail. Net
    By SendBulkEmail_Net in forum SEO - Link building
    Replies: 67
    Last Post: 01-02-2011, 07:24 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108