iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-22-2005, 06:08 PM
WebProWorld Member
 
Join Date: Jul 2003
Location: Chilliwack, BC Canada
Posts: 99
blastradius RepRank 0
Default visitors location

I am searching for a script that will detect the location (what country) where the visitor in connecting from so that I can do a redirect if they are from Canada vs if they are from the US. I need this script in both PHP and ASP. Thanks for any help!
__________________
http://www.freshfire.ca
Reply With Quote
  #2 (permalink)  
Old 02-23-2005, 03:37 AM
Faglork's Avatar
WebProWorld Veteran
 
Join Date: Feb 2005
Location: Forchheim, Germany
Posts: 938
Faglork RepRank 1
Default

How about a simple google search?

http://www.google.de/search?q=redire...on+ip+database

Alex
Reply With Quote
  #3 (permalink)  
Old 02-23-2005, 04:41 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

http://www.maxmind.com/ They have the database of IP to country and examples of using it in just about any language you could want.

You will need to write some code that if Canada redirect here otherwise redirect to location 2 but that should be trivial.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:29 AM.



Search Engine Optimization by vBSEO 3.3.0