GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Help w/ GEOIP (https://gfy.com/showthread.php?t=671426)

phasic 10-28-2006 09:25 PM

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.

Damian_Maxcash 10-28-2006 09:28 PM

www.maxmind.com

The Shame 10-28-2006 09:28 PM

phpadsnew will do geoip. its the best ads script out there

DateDoc 10-28-2006 09:28 PM

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.

DateDoc 10-28-2006 09:29 PM

Quote:

Originally Posted by damian2001 (Post 11179224)

Maxmind is good but i found ip2location to have a better db.

fris 10-28-2006 09:30 PM

mod geoip/mod rewrite/htaccess

DateDoc 10-28-2006 09:30 PM

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

phasic 10-28-2006 09:34 PM

Haha, anything free?

Damian_Maxcash 10-28-2006 09:39 PM

Quote:

Originally Posted by phasic (Post 11179263)
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.

sacX 10-28-2006 10:02 PM

Quote:

Originally Posted by damian2001 (Post 11179287)
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.

SmokeyTheBear 10-28-2006 10:10 PM

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/


All times are GMT -7. The time now is 01:03 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123