Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

i want to only allow website visitors from australia. has anyone done this before?

share|improve this question

migrated from stackoverflow.com Dec 22 '09 at 14:40

This question came from our site for professional and enthusiast programmers.

3 Answers 3

You are looking for GeoIP data to base your restrictions on. There are lots of resources for this kind of thing around.

However, this is not foolproof and can be circumvented, for example by people using a proxy in Australia.

share|improve this answer

Try a service such as http://www.maxmind.com/ or http://hostip.info/

They can tell you where a user is located.

share|improve this answer

to be honest I have tried this, and it has never been a good idea. Even with a paid maxmind database I have had verified locals not being able to access the site. Several reasons come to mind, they maybe using a secure proxy to filter content or whatever. If you are doing this for a limited set of visitors (like employees of a company) or to reduce possibility of attacks from outside source then yes its a workable solution. In all cases, for production WWW I have had to eventually remove the country specific filters.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.