What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.
Is it possible, ignoring the amount of work that might be needed for
robust implementation, to make a fairly confident guess at US Dollar
or euro, for starters, with Sterling, Yen, Aussie Dollars, Roubles,
etc. as possibilities too?
What mechanisms would your first efforts deal with?
How about detecting the country IP address with PHP?
David
On 17 Jun 2010, at 14:38, Keith Martin email@hidden wrote:
What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.
Is it possible, ignoring the amount of work that might be needed for
robust implementation, to make a fairly confident guess at US Dollar
or euro, for starters, with Sterling, Yen, Aussie Dollars, Roubles,
etc. as possibilities too?
What mechanisms would your first efforts deal with?
On 17 Jun 2010, at 14:38, Keith Martin email@hidden wrote:
What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.
Is it possible, ignoring the amount of work that might be needed
for robust implementation, to make a fairly confident guess at US
Dollar or euro, for starters, with Sterling, Yen, Aussie Dollars,
Roubles, etc. as possibilities too?
What mechanisms would your first efforts deal with?
k
These methods don’t necessarily work when the visitor works for a
multinational company. In the past I have contracted to both HP and
Nokia in the UK, where my apparent location would have been be the
USA and Finland. I could make you think I’m in the USA now, but I
won’t be there until Saturday.
David
–
David Ledger - Freelance Unix Sysadmin in the UK.
HP-UX specialist of hpUG technical user group (www.hpug.org.uk)
email@hidden www.ivdcs.co.uk
That’s true. The best way to leverage these sorts of helpers is to ask
your visitors if you “guessed right”. Also offer a way out, like a
picking list or whack-a-flag or something like that, to give them a
chance to correct your assumption.
Walter
On Jun 17, 2010, at 5:14 PM, David Ledger wrote:
These methods don’t necessarily work when the visitor works for a
multinational company. In the past I have contracted to both HP and
Nokia in the UK, where my apparent location would have been be the
USA and Finland. I could make you think I’m in the USA now, but I
won’t be there until Saturday.
Hi Keith,
As mentioned you could use GeoIP though PHP to try and determine the
user’s location based on their host’s IP address. If you wanted to go
bleeding edge you can also use HTML 5’s geolocation features;
The browser (if the feature is supported) will ask the user for
permission to share this information however. For a belt and braces
approach you could do both (geolocation with HTML 5 and GeoIP with
PHP) and cross reference the results.
Regards,
Tim.
On 17 Jun 2010, at 14:38, Keith Martin wrote:
What are the options available to site owners for detecting the
location of a visitor? I know precision isn’t likely, but I’m
thinking more about the possibility of setting a reasonable first
guess for currency.
Is it possible, ignoring the amount of work that might be needed for
robust implementation, to make a fairly confident guess at US Dollar
or euro, for starters, with Sterling, Yen, Aussie Dollars, Roubles,
etc. as possibilities too?
What mechanisms would your first efforts deal with?