Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-28-2006, 10:46 PM   #1
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
:stoned Free geo-ip for your website (test this)

I often see people asking for an easy free solution so here goes
p.s. because its free its not perfect but it also is alot less tasking on your server than most free methods

exampe usage of below code
http://ytmnd.webspacemania.com/freegeo/
Code:

<html>
<head>
</head>
<body>


Hi, I'm Brooke i live in 






<?php
// ip to html by stb
$addr = getenv("REMOTE_ADDR");
$url = "http://api.hostip.info/get_html.php?ip=$addr&position=true";
$html = file_get_contents($url);
$trip = explode('Latitude:',$html);
$ctcn = $trip[0];
$trip = explode('City: ',$ctcn);
$ctcn = trim($trip[1]);
echo $ctcn;
?>


 and i'm super horny



</body>
</html>
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:00 PM   #2
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
Quote:
Originally Posted by SmokeyTheBear View Post
I often see people asking for an easy free solution so here goes
p.s. because its free its not perfect but it also is alot less tasking on your server than most free methods

exampe usage of below code
Hey - its better than the one in your sig!

but I did go to the site and update the record for my IP

Everyone should do that - it might make it worth using on bigger projects.

If it doesn't get yours right click here www.hostip.info and you can change it for them.
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:03 PM   #3
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Hi, I'm Brooke i live in (Unknown city) and i'm super horny
i guess it has some issues with israel....
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:05 PM   #4
Sly
Let's do some business!
 
Sly's Avatar
 
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,365
Apparently it doesn't know San Diego either.
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted

Windows VPS now available
Great for TSS, Nifty Stats, remote work, virtual assistants, etc.
Click here for more details.
Sly is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:07 PM   #5
Damian_Maxcash
So Fucking Banned
 
Join Date: Oct 2002
Location: MaxCash.com
Posts: 12,745
Quote:
Originally Posted by Sly View Post
Apparently it doesn't know San Diego either.
Did you go and change it for them?
Damian_Maxcash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:09 PM   #6
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
doesn't work for me either :-/
"Hi, I'm Brooke i live in (Unknown City?) and i'm super horny"
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:13 PM   #7
soulbleed
Confirmed User
 
Join Date: Oct 2005
Location: Australia
Posts: 2,606
didnt work for me
soulbleed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:14 PM   #8
Sly
Let's do some business!
 
Sly's Avatar
 
Industry Role:
Join Date: Sep 2004
Location: Austin, TX
Posts: 31,365
I fixed it. Must need a lot of work.
__________________
Vacares - Web Hosting, Domains, O365, Security & More - Paxum and BTC Accepted

Windows VPS now available
Great for TSS, Nifty Stats, remote work, virtual assistants, etc.
Click here for more details.
Sly is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:16 PM   #9
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by damian2001 View Post
Hey - its better than the one in your sig!

but I did go to the site and update the record for my IP

Everyone should do that - it might make it worth using on bigger projects.

If it doesn't get yours right click here www.hostip.info and you can change it for them.


everyone should go to www.hostip.info and add their city to the list , its a user built databse
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:20 PM   #10
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
its also got a cool plugin for firefox to show the city location of any link

like this
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-28-2006, 11:24 PM   #11
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
nice job smokey, ill put it to use
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 12:29 AM   #12
Evil1
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 3,893
New Castle, DE?? 301.68 miles off!
__________________
Evil1 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 01:52 AM   #13
phasic
Confirmed User
 
phasic's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: US
Posts: 2,104
Thanks smokey, answered my ? directly. Although its extremely faulty. How many people got it right on the first visit with out correcting? I guess if its the only free method thats my only choice though, eh?
__________________
Brief revisit. (mic drop)
phasic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 03:05 AM   #14
Yngwie
I am an Alien from space
 
Yngwie's Avatar
 
Industry Role:
Join Date: May 2003
Location: Ontario, Canada
Posts: 11,118
Quote:
Originally Posted by woj View Post
doesn't work for me either :-/
"Hi, I'm Brooke i live in (Unknown City?) and i'm super horny"

didn't work for me, but I went to http://www.hostip.info/index.html and added my city to their list and now it works.
__________________
ICQ: 16544251 - Skype: gator37 @ eastlink.ca - email: yngwie @ isys.ca
Yngwie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 03:16 AM   #15
heywood
So Fucking Banned
 
Join Date: Jun 2003
Location: Wilsonville, Oregon
Posts: 468
Quote:
Originally Posted by phasic View Post
Thanks smokey, answered my ? directly. Although its extremely faulty. How many people got it right on the first visit with out correcting? I guess if its the only free method thats my only choice though, eh?
Most of the GeoIP stuff out there is less than accurate. I think this is something that will certainly take time to iron out. ISPs pop up switch around so much these days, it seems like it would be a nightmarish database to maintain.

Thanks for the info smokey, I've worked on a couple solutions myself, but yours seems the easiest. I worked with the free version of GeoIPmax and the database version is horrible (took me forever to figure out a good index, and even then it was slow) and the binary version is decent. But I think the one smokey posted above the simplest for our end.

BTW Smokey, would you be willing to verify some code (my zango removal tool (link to thread)) and post the results?
heywood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 06:40 AM   #16
pornpf69
Too lazy to set a custom title
 
pornpf69's Avatar
 
Join Date: Jun 2004
Location: Brasil
Posts: 15,782
I have their "script" and their free DB on my server
__________________
pornpf69 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 07:53 AM   #17
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by phasic View Post
Thanks smokey, answered my ? directly. Although its extremely faulty. How many people got it right on the first visit with out correcting? I guess if its the only free method thats my only choice though, eh?
theres a few other free services available , they require a bit more work though , i figured i would post the "easy smeazie" way..

The thing with most geo-ip services is the database is a few mb's so everytime someone hits your script your server has to look thru the db file.. this method is less taxing on your server
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:25 AM   #18
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by SmokeyTheBear View Post
The thing with most geo-ip services is the database is a few mb's so everytime someone hits your script your server has to look thru the db file.. this method is less taxing on your server
Not really - I'm using geoip perl and benchmarking apache with 500k hits on the perl script (lookup on a 25MB city binary database binary) didn't really tax the server at all....

if people like, I'll open it up to all - it's geolite, so it's not 100%.

Hey, if enough people are willing to subscribe at, say $1/10k lookups, I'll get the main, pretty darn accurate maxmind city database...
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:34 AM   #19
Basic_man
Programming King Pin
 
Basic_man's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: Montreal
Posts: 27,360
(Unknow City) ... that's farrrrrrrrrr from here :P
__________________
UUGallery Builder - automated photo/video gallery plugin for Wordpress!
Stop looking! Checkout Naked Hosting, online since 1999 !
Basic_man is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 09:43 AM   #20
jesse_adultdatingdollars
Confirmed User
 
jesse_adultdatingdollars's Avatar
 
Industry Role:
Join Date: Apr 2006
Location: San Diego
Posts: 2,197
Works for me in San Diego
__________________
Got Dating Traffic?
Contact: Jesse (at) adultdatingdollars.com ICQ: 296775809 or AIM: cabotime21
jesse_adultdatingdollars is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 10:18 AM   #21
interracialtoons
Confirmed User
 
Join Date: May 2006
Posts: 1,910
Works for me!
__________________
Done.
interracialtoons is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 10:44 AM   #22
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
Or even easier:

PHP Code:
preg_match_all('`^[^:]+: (.+)$`misU',file_get_contents('http://api.hostip.info/get_html.php?ip='.$SERVER['REMOTE_ADDR'].'&position=true'),$matches);

echo 
$matches[1][0]."<br />";
echo 
$matches[1][1]."<br />";; 
Outputs
Quote:
AUSTRALIA (AU)
Brisbane
One line solutions rock.

Last edited by quantum-x; 10-29-2006 at 10:46 AM..
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 02:51 PM   #23
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
if people are not getting accurate results from hostip.info, the following should be better:

http://geo.corecoder.com/

to test your own ip, or

http://geo.corecoder.com/?ip=xx.xx.xx.xx

to test a specific one.

If you want all data, not just the city, it can be found here:

http://geo.corecoder.com/full?ip=xx.xx.xx.xx
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-29-2006, 03:03 PM   #24
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Quote:
Originally Posted by quantum-x View Post
Or even easier:

PHP Code:
preg_match_all('`^[^:]+: (.+)$`misU',file_get_contents('http://api.hostip.info/get_html.php?ip='.$SERVER['REMOTE_ADDR'].'&position=true'),$matches);

echo 
$matches[1][0]."<br />";
echo 
$matches[1][1]."<br />";; 
Outputs


One line solutions rock.
much better and simpler.. i bow to the power of proper php
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-30-2006, 01:25 AM   #25
starpimps
Confirmed User
 
Join Date: Sep 2006
Location: internets
Posts: 6,954
it got me in canada but wrong city
__________________
Teen Porn Models / Solo Girls
starpimps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.