is their any method to enable user registration for specific country like only people from USA can register and all other users coming from other countries redirect to to a specific page showing them message that only people from USA can register to this site ?

  • Why do you want to do this?
    – Tom J Nowell
    Commented Nov 19, 2011 at 0:54

2 Answers 2


After some thought, I have a better answer. Although keep in mind all of this can be circumvented by having a friend living in the US:

  1. Credit card transaction - This is your best bet for verifying, however it's possible the person is foreign and has a US credit card, be it for business purposes, or to order things from the US. This will likely cost you money, and you'll be subject to finance & privacy laws
  2. Mobile Phone SMS - This can be done using an external SMS service, but keep in mind I could take a holiday in the US, and buy a pay as you go phone, then use your service when I return to the UK, as a UK citizen. SMS services normally cost money, and you'll be subject to personal information laws Try http://wordpress.org/extend/plugins/sms-text-message/ or http://wordpress.org/extend/plugins/quick-sms/
  3. GPS - This would work, but, it assumes the other person can be trusted, and is easily spoofable. Numerous devices and browsers do not support this, and most desktop machines lack the hardware. Some browsers ask where the user is, letting them move to the US by choice. This also discriminates against American citizens on holiday elsewhere ( President Obama on holiday in Italy tries to get on your site? Nope, access denied )

All three can be bypassed or spoofed. All three require that the user trust you ( they're likely to leave the site in disgust or opposition, after all would you hand over your credit card details or mobile phone number to just anyone? ), also these details are all private, and are heavily regulated.

If your site is usable by non-US citizens, then you shouldn't limit yourself. If your site provides a service that is meaningless outside the US, then let them sign up if they choose but warn them that there won't be much point.

To summarize:

There are measures you can take, but the internet is inherently anonymous, and you can't be sure if the user is an American at a Russian computer cafe, or a Russian sitting on the whitehouse lawn.

Of Note

All three methods I pointed out are beyond the scope of this website, as they are not WordPress problems, but general problems. There may be plugins that can help, but thats a different question. You will certainly need help with credit cards ( beyond WordPress, you need to be able to handle raw credit details online, you can't just use a paypal or WordPress plugin, then there's compliance needed for your code )


Your best bet is to require them to enter a piece of information that is specific to the USA.

e.g. to limit UK people you would ask for a UK post code

Alternatively you could trust your users and ask them if they're in the USA.

Tracking users by their IP will get you some of the way, but geolocation databases aren't precise, or reliable, and you will have lots of false positives and negatives. It's also absurdly easy to get around via proxy websites, or SSH tunnels.

Thus without ISP cooperation, there is no guaranteed way of doing this.

As a non US citizen I would hope you're not depriving me of well earnt cookies!

  • isn't their any better way doing this, if yes please help. Commented Nov 18, 2011 at 18:46
  • I can guarantee you that it is impossible to deliver a 100% certain method without forcing your users to have an interview in person with forms of evidence. The sort of evidence needed when taking out a loan at a new Bank, or getting a passport.
    – Tom J Nowell
    Commented Nov 19, 2011 at 0:52
  • Even then, no matter how many hurdles you add, they will get in if they really want to and there is nothing you can do about it, e.g. Hulu is US only, but a lot of people I know have servers and tunnels that they can use to watch it.
    – Tom J Nowell
    Commented Nov 19, 2011 at 0:53
  • So if the likes of Hulu or the BBC fail at this, large multinational corporations ( and in the latter case, a well funded government body ), I doubt an effective solution really exists purely online
    – Tom J Nowell
    Commented Nov 19, 2011 at 1:00
  • I have got an idea, please help. If a mobile confirmation code send to user mobile phone to verify is he/she from specific country or not, then i think it may be possible. But i don't know how to add this faeture to wordpress website to send user a sms confirmation code to their mobile phone when a user wants to register. just like twitter or facebbook sms confirmation code, if some one has any idea please guide me. Commented Nov 20, 2011 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.