December 30th, 2004, 12:31 AM
|
#1 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
| Another PHP / Logging Question
I want to be able to tell from which town (or state) the user that is viewing my page is from, without asking them.
Is there a legal way to do this, preferablly with PHP?
Blaze |
| |
December 30th, 2004, 12:41 AM
|
#2 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,327
|
you could use WHOIS queries to the IPs logged to your server, but you'll probably get the address of their ISP at best.
Many router/firewall distros have this capability built-in but I'm not sure about how to set it up to actively log it. |
| |
December 30th, 2004, 12:53 AM
|
#3 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,466
|
Look into GeoMind MaxIP. They have a database of IPs and locations.
Also, most log tools will give you the country.
__________________
My computer is bigger than yours!
|
| |
December 30th, 2004, 01:22 AM
|
#4 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
Sj... link? I googled and came up with no results at all.
Blaze |
| |
December 30th, 2004, 01:26 AM
|
#5 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,466
| |
| |
December 30th, 2004, 01:46 AM
|
#6 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
Oh, $20 / 50,000 isnt bad. that will work out to about $20 a month, and they have already made 350 in the two days the site i made for them has been up, as well as 2500 hits, so ... should be set.
Thank yuo!
Blaze |
| |
December 30th, 2004, 02:07 AM
|
#7 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,466
|
If thats $20 per 50,000 lookups, be warned. If the site gets hit hard, you can do that in less than a day. Just keep an eye on it so you don't get hit with a huge bill. |
| |
December 30th, 2004, 02:14 AM
|
#8 (permalink)
| | Senior Member
Join Date: Jul 2004 Location: New Zealand
Posts: 582
|
The obvious follow on to this question is, what do you plan to do with the information? If you haven't worked that part out then don't bother. |
| |
December 30th, 2004, 08:09 AM
|
#9 (permalink)
| | Ultimate Member
Join Date: Jan 2003 Location: MA / NH
Posts: 1,497
|
The owner of the site (Athol Daily News, Inc.) was to be able to tell from what town the visitor's are coming from.
Price really isn't a problem, par say, as the site is subscription based.
The tech guy that has contracted me, wants to show to his boss that people outside of the regular subscribers are visiting the site (not nescaraily subscribing).
Blaze |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |