I heard of some people whose accounts were hacked from countries they never visited (or plan to visit), so I was wondering if you could restrict the area from which you can access your Gmail account.

I googled a bit but couldn't find anything thus far.

  • 1
    Let's assume you could. You could easily get around that with a proxy (Tor for example)
    – Cole Tobin
    Sep 6, 2014 at 4:24

2 Answers 2


No, you can't do that. There is nothing in Gmail's settings to restrict from where your account can be accessed.

Really, you shouldn't have to. Google already does some checking to see if your account is being accessed from wildly divergent locations.

According to the Google Online Security Blog:

You may remember that a while back we launched remote sign out and information about recent account activity to help you understand and manage your account usage. This information is still at the bottom of your inbox. Now, if it looks like something unusual is going on with your account, we’ll also alert you by posting a warning message saying, "Warning: We believe your account was last accessed from…" along with the geographic region that we can best associate with the access.

access warning

To determine when to display this message, our automated system matches the relevant IP address, logged per the Gmail privacy policy, to a broad geographical location. While we don't have the capability to determine the specific location from which an account is accessed, a login appearing to come from one country and occurring a few hours after a login from another country may trigger an alert.

If you're suspicious that your account might have been accessed from a place where you haven't been, be sure to check the latest activity on your account by clicking the "Details" link at the bottom of your Gmail page.

There's also this general guide to keeping your Gmail/Google account safe: How do I protect my Google/Gmail account?


Short answer: No, you just can't.

  • 1
    -1; Sorry frlan, this is as bad as an answer as mine is. Sep 6, 2014 at 13:28

Your Answer

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