Forum OpenACS Q&A: Response to Identify Country where you are surfing from via IP address

I know old cgi scripts would use the suffix of a visitor's net address. So someone surfing with a .co.uk address would most likely be in the uk, .co.za in South Africa...

Not totally accurate, but reasonably so, and easier/cheaper to implement.