• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

How do they do this...

Paithar

[H]ard|Gawd
Joined
Jul 17, 2003
Messages
1,049
I've had an idea for a website for a while now and really, the only thing holding me back from developing it is that I have no idea how to do a couple of things.

You've seen those sites where you go to them and even though you've never been there before they somehow know your general location. How do they do that? Do they somehow lookup your ip address or ISP provider and then from that determine your zipcode?

Another thing I'm not sure how to do is this. Let's a user registers with my site. As part of their registration they entered their zipcode. Now, let's say that on the users main page (once they log in) I want an automatic search to be performed for the services within a certain range of their zipcode. Like say a search would automatically be performed for a 50 mile radius of zipcode 51601 or whatever. How do they do this? I've seen it done on a few websites (although at the moment I can't think of any in particular).

These are two functions I need to know how to do in order to develop the site I've been wanting to do. The problem is, I'm not even sure what to search on in google to find out how to do these.

Any information would be greatly appreciated.

Thanks!
 
I've had an idea for a website for a while now and really, the only thing holding me back from developing it is that I have no idea how to do a couple of things.

You've seen those sites where you go to them and even though you've never been there before they somehow know your general location. How do they do that? Do they somehow lookup your ip address or ISP provider and then from that determine your zipcode?


Thanks!

Its most likely some simple PHP getting your host mask

http://ipchicken.com

See it now?
 
I'll have to remember that ipchicken site. Didn't know about them. Anyway, even by finding out that information, how do they know that I'm in the southwest Iowa area or in the Omaha, Nebraska area? I've had sites that I've gone to where I didn't have to log in to anything and they new what area I was in.

The most popular example of these is those sites that also have those "personal ads" from women looking to hook up with you. Supposedly all of those women are from your area, though I seriously doubt that they actually are. Yet somehow they know what area you are in.
 
Another thing I'm not sure how to do is this. Let's a user registers with my site. As part of their registration they entered their zipcode. Now, let's say that on the users main page (once they log in) I want an automatic search to be performed for the services within a certain range of their zipcode. Like say a search would automatically be performed for a 50 mile radius of zipcode 51601 or whatever. How do they do this? I've seen it done on a few websites (although at the moment I can't think of any in particular).

Get a database of zip-codes & their central locations. Search it.
 
The process you're looking for is called "geolocating". Google around and you can find databases mapping IP blocks to physical locations.
 
the major search engines made that local search functionality u seek very simple thru the use of APIs

just look for google API or yahoo API
 
http://www.hostip.info/use.html

You can use their API to request the information from their database and display it.
Although it's not totally accurate, you get the idea. You can look for a similar API or create your own if you have the spare time.
 
Back
Top