Solved

Web site hosting:  Determining the geographic coordinates of visitors to a web site? Their IP Addresses?

Posted on 2016-07-30
11
125 Views
Last Modified: 2016-08-19
How does one determine the geographic coordinates of a visitor to a web site?
Google Adwords can narrow a person's clicks to a particular zip code. How accurate is this?
Clickcease.com does the same thing?  And yet, when I examine the visitor logs of --let's just say as an example-- 1and1.com, There is no geographic coordinate information there.  Where is Google and Clickcease getting this data?
How is Google adwords able to do this?
How is Clickcease able to do this?
0
Comment
Question by:brothertruffle880
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 57

Expert Comment

by:giltjr
ID: 41735700
They are looking up who IP address is assigned to and assuming the location based on who "owns" that address.

Example: They company I work for located in the USA and we have a office in England.  At one time we had a private WAN connection and our only Internet connection was in the USA office.  So when the employees accessed web sites, they would have the IP address assigned to our USA office, so it appears as if they were in the USA.  So they would get ads for services that were no where near them.

If you look up the host name 1and1.com it resolves to 74.208.255.134.  If I do a whois on that address I get that it is assigned to:

OrgName:        1&1 Internet Inc.
OrgId:          11INT
Address:        701 Lee Rd
Address:        Suite 300
City:           Chesterbrook
StateProv:      PA
PostalCode:     19087
Country:        US

So if somebody from 1and1.com was accessing a web server that I ran from that IP address, I would detect they were there.

Just as a F.Y.I, there are DNS servers that also do geo location lookup so that they will send you to a different IP address depending on where the DNS server thinks you are located.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41735918
IP addresses belong to ISPs and hosting companies, almost never individuals.  If you only use an IP address, you will get the location of the company, not the person.  However... Google and others keep track of much more information than that to locate a person.
0
 

Author Comment

by:brothertruffle880
ID: 41739954
in Google's and www.clickcease.com's reports they determine the location of people who click on ads down to the block or zip code, how do they do it?
0
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 41739967
They keep track of a lot more than just IP addresses.  Anything you enter into a Google account is available to Google to identify you.  They correlate everything they collect in order to identify you for their advertising services which is where they make their money.  They can also correlate with all the public databases that list people by name and address.

You should also know that they don't about everyone, only those that have revealed their info somehow.
0
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 41744744
Is your question how "they" do it or how you can do it?

The way you can determine a visitors approximate location is by a reverse ip service  or api.

http://ip-api.com/
https://market.mashape.com/fcambus/telize/
http://ipinfo.io/developers
https://freegeoip.net/?q=50.248.104.153

They all work similar. You will use your server side code to grab the IP of the visitor, then submit the ip to the third party api, then process the response back that can include multiple fields including a lat/lon coordinate, zip, city, st, zip, county, country etc.  

You have to realize the accuracy will not be 100% as IP's can be faked and depending on the location/isp, you will get an exact zip to something near by.

You can also get the location from the browser but this requires getting the user permission.  https://developers.google.com/web/fundamentals/native-hardware/user-location/obtain-location?hl=en

The way you actually use any of this will depend on what you are trying to do.
0
 

Author Comment

by:brothertruffle880
ID: 41753899
Hi Scott:
Yes.  How can I do it?
Company "A" -- a local shop-- wants to know the location and other details of who's clicking on their ads. The more accurate, the better.
That's the scenario.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 41754218
Following the links that Scott gave in his last post.
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 41754460
Can you explain in short detail what you are doing?

Are you serving ads? or are they buying ads from a 3rd party like google?  If that is the case, use google analytics and adwords to get that information.

If you are serving ads, use a 3rd party service like I suggested.  If you need help with that portion, I suggest opening another question with specifics as to which programming language you are using and provide sample code with what you tried on your own and errors.  If you can't get that far, then you may want to consider using Gigs to hire somebody to do it for you https://www.experts-exchange.com/gigs/ or Live to have short term assistance on a specific part of  your code you need help with. https://www.experts-exchange.com/live/
0
 

Author Comment

by:brothertruffle880
ID: 41762466
Hi Scott.  I'm using Google Ad words but want to limit my ad's visibility to a small geographic region.  (by zip codes).  Reason I'm limiting my google ad words campaign to a small area?  I don't want to drive a hundred miles for a job.
I was getting fraudulent clicks on my ads and wanted to try and narrow down where these fraudulent clicks were coming from
I subscribed to clickcease which did a good job of localizing the fraudulent clicks and was very interested in knowing how they were able to locate the pranksters/SOB's.
I suspect it was a competing business that was engaging the fraudulent clicking of my ads.

Rather than paying for this service.  I posted the question because I thought that perhaps I could code something that would accomplish the same thing.  I'm not a half-bad programmer myself!

Thanks.
0
 

Author Closing Comment

by:brothertruffle880
ID: 41762480
This was useful.  Thanks again Scott!
0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 41762489
Adwords already has the ability to limit ads by geography.  If you are buying ads for google to display on other sites, your only option is to filter in Adwords where those ads show up.

In google analytics you can view the location of your visitors and if you link up adwords to analytics you can see exactly where they came from.  Nothing else needed.

If you feel you have fraudulent clicks, you need to let Google know.
https://support.google.com/adwords/answer/42995?hl=en
https://www.google.com/intl/en_ALL/ads/adtrafficquality/

Adwords has other filters that can be used and may be not noticed.  Many people fail using adwords because it feels like it should be easy but it is hard to get right.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question