Click to See Complete Forum and Search --> : Filter traffic by country


shopkanji
04-07-2005, 07:06 PM
What is the best way to filter traffic using PHP?

I need to sort people that visit my website into US, UK, and everyone else.

The reason being is I plan on linking to some places where people can buy specialty printing papers. For my English pages, people in the US would be interested in the ANSI A (8.5x11”) paper from an American company, where people in the UK would be interested in the A4 (210mm x 297mm) paper from a UK company. As far as everyone else, I would link them to an American company selling A4 paper.

For clutter reasons, I have one link, say “Underwater Paper”, that redirects the person to a PHP script. I would like for the PHP script to determine the country of the person, and send them to the appropriate page.

Thanks

bokeh
04-08-2005, 03:37 AM
It's easy. All you need is a list of the 1000 billion IP addresses and who they are registed to and what country they are in.

Believe it or not, this service is available on CD but it costs a few hundred dollars.