Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

migrated from Dec 22 '09 at 14:40

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

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 or

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


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