Help w/ GEOIP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phasic
    Confirmed User
    • Jul 2005
    • 2104

    #1

    Help w/ GEOIP

    Im trying to setup a script or find a script or something that will display: Hi, Im Brooke my hometown is <insert city here>. Like all of the GEOIP banners and text stuff you find every where else. I want to be able to incorporate this into my site. Please help.
    Brief revisit. (mic drop)
  • Damian_Maxcash
    So Fucking Banned
    • Oct 2002
    • 12745

    #2
    www.maxmind.com

    Comment

    • The Shame
      Confirmed User
      • Oct 2006
      • 394

      #3
      phpadsnew will do geoip. its the best ads script out there
      Mess with the best, die like the rest.

      Comment

      • DateDoc
        Outside looking in.
        • Feb 2005
        • 14243

        #4
        I have ip2location on my site and it works great. Would love to tell you how to set it up but the guy that writes my scripts did it for me. www.ip2location.com. I got the db3 i think it is which gives cities. I also had him set it up so if it does not recognize an IP it says Local.

        I believe they do give instructions how to set it up but I just asked him to do it. He could probably set you up too although I doubt I will talk to him until Monday.

        Comment

        • DateDoc
          Outside looking in.
          • Feb 2005
          • 14243

          #5
          Originally posted by damian2001
          Maxmind is good but i found ip2location to have a better db.

          Comment

          • fris
            I have to go potty
            • Aug 2002
            • 55933

            #6
            mod geoip/mod rewrite/htaccess
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


            Only Fans Data

            20+ Custom Adult Themes and Plugins

            Comment

            • DateDoc
              Outside looking in.
              • Feb 2005
              • 14243

              #7
              this is the version I bought - $199 - http://www.ip2location.com/IP-COUNTRY-REGION-CITY.HTM

              Comment

              • phasic
                Confirmed User
                • Jul 2005
                • 2104

                #8
                Haha, anything free?
                Brief revisit. (mic drop)

                Comment

                • Damian_Maxcash
                  So Fucking Banned
                  • Oct 2002
                  • 12745

                  #9
                  Originally posted by phasic
                  Haha, anything free?
                  There are some free ones around but they are really bad......

                  I actually went through this last week and ended up paying for it. The free ones just didn't get anyone correct.

                  Comment

                  • sacX
                    Confirmed User
                    • Dec 2002
                    • 2998

                    #10
                    Originally posted by damian2001
                    There are some free ones around but they are really bad......

                    I actually went through this last week and ended up paying for it. The free ones just didn't get anyone correct.
                    from my tests ip2location is MUCH worse than maxmind.
                    Have Asian Language Traffic?

                    Comment

                    • SmokeyTheBear
                      ►SouthOfHeaven
                      • Jun 2004
                      • 28609

                      #11
                      heres a totally free method that doesnt cause a huge server load either..

                      keep in mind because its free its not the BEST geo database out there but hey its free..



                      save as something.php
                      ----------------------------------------------

                      Code:
                      <html>
                      <head>
                      </head>
                      <body>
                      
                      
                      Hi, Im Brooke my hometown is 
                      
                      
                      
                      
                      
                      
                      <?php
                      // ip to html bt stb
                      $addr = getenv("REMOTE_ADDR");
                      $tb = "http://api.hostip.info/get_html.php?ip=$addr&position=true";
                      $ntml = file_get_contents($tb);
                      $trip = explode('Latitude:',$ntml);
                      $ctcn = $trip[0];
                      $trip = explode('City: ',$ctcn);
                      $ctcn = trim($trip[1]);
                      echo $ctcn;
                      ?>
                      
                      
                      </body>
                      </html>
                      -------------------------------------------


                      Heres an example

                      http://ytmnd.webspacemania.com/freegeo/
                      hatisblack at yahoo.com

                      Comment

                      Working...