Fix "Access was blocked because my location looked unusual"
For customers who were blocked by a login or access policy because their sign-in came from an unusual location. This runbook helps you confirm whether the block was caused by VPNs, mobile networks, travel, stale allowlists, or bad geolocation data, then apply the safest fix without weakening your Zero Trust setup.
TL;DR — This block usually means your Zero Trust access policy saw your sign-in come from a country, city, IP address, or network it did not expect. The fastest fix is to retry from a normal network first (turn off VPN/proxy, switch off mobile data, reconnect on your usual Wi‑Fi), then have an admin review the access log entry and update the allowlist or trusted location rule if the block was legitimate. Reading time: ~6 min
The scenario
It is a normal Tuesday afternoon and you are trying to open your company app, admin panel, or VPN-protected site. Instead of the login finishing, you get a message saying your access was blocked because your location looked unusual. You might be at home, on hotel Wi‑Fi, tethered to your phone, or using a VPN (virtual private network). Nothing else seems broken, but you cannot get into the one system you need right now.
Symptoms
- You see a block page or login error such as:
Access was blocked because your location looked unusual. - Common variants include:
Sign-in blocked due to unusual locationAccess denied: location not allowedYour request was blocked by an access policy - You can reach the site, but after login or during single sign-on (SSO, one login for many apps), access is denied.
- The same account works from one network but fails from another.
- Admin or audit logs show entries like:
decision=deny reason=geo_location_mismatchpolicy=trusted-locations action=blocksource_ip=203.0.113.24 country=DE expected_country=US - You recently changed one of these:
- turned on a VPN or proxy
- switched from office/home Wi‑Fi to mobile data
- traveled to another city or country
- got a new ISP (internet service provider)
Likely causes
| Cause | How common | Quick check |
|---|---|---|
| VPN or proxy changed your apparent location | Very common | Visit https://ifconfig.me in your browser and compare the shown IP/country with your real location |
| Mobile carrier or ISP routed traffic through another city/country | Very common | Turn off mobile data and retry from your usual Wi‑Fi |
| Your Zero Trust policy only allows specific countries, IPs, or office egress addresses | Common | In your provider dashboard, open Access/Security logs and inspect the latest deny event for reason or policy |
| You are traveling or working from a new location not yet approved | Common | Ask an admin to compare your current public IP from https://ifconfig.me with the allowlist |
| IP geolocation data is wrong or stale | Occasional | Check your IP at https://ifconfig.me, then look it up at https://ipinfo.io/<your-ip> |
| Corporate NAT or egress IP changed and the allowlist was not updated | Occasional | From the affected network, open https://ifconfig.me and compare it to the documented trusted office IP |
Step-by-step diagnosis
-
Check your current public IP and visible location.
- Open your browser and visit:
https://ifconfig.me- If the IP or country shown is not where you physically are, this is likely a VPN/proxy/mobile-routing issue. Jump to Fixes → VPN or proxy changed your apparent location or Fixes → Mobile carrier or ISP routed traffic through another city/country.
-
Retry from a normal network.
- On your device, turn off any VPN app, privacy relay, or proxy. Then disconnect from mobile data and reconnect to your usual home or office Wi‑Fi.
- If the login works on usual Wi‑Fi but not on mobile/hotel/VPN, this is your problem. Jump to the matching fix section.
-
Check whether the block is policy-based.
- Ask an admin to open your provider's dashboard and go to the access or security event logs. In many providers this is under a path like:
Security/Access → Logs- Find the latest deny event for your username or source IP.
- If you see
geo_location_mismatch,country_not_allowed,ip_not_in_allowlist, or a named policy liketrusted-locations, jump to Fixes → Your Zero Trust policy only allows specific countries, IPs, or office egress addresses.
-
Confirm whether you are simply in a new place.
- Compare your current public IP from
https://ifconfig.mewith the list of approved office/home/trusted IPs your admin keeps. - If your IP is new and you are traveling or working somewhere new, jump to Fixes → You are traveling or working from a new location not yet approved.
- Compare your current public IP from
-
Check for bad geolocation data.
- Open:
https://ipinfo.io/<your-ip>- Replace
<your-ip>with the IP from step 1. - If the country or city is clearly wrong, jump to Fixes → IP geolocation data is wrong or stale.
-
Check whether your office or company egress IP changed.
- From the affected office network, open:
https://ifconfig.me- Compare that IP with the one in your access policy or internal documentation.
- If they differ, jump to Fixes → Corporate NAT or egress IP changed and the allowlist was not updated.
View as text
[Your Device] ---- 1. login ----> [Access Policy]
| |
| 2. source IP / country | 3. evaluate trusted
v v
[Public IP] ------------------------> [Rules]
|
4. deny unusual v
[Block Page]Fixes
VPN or proxy changed your apparent location
- Turn off your VPN, proxy, or privacy relay in the app you use.
- Reconnect your browser and retry login.
- If you must use a VPN for work, ask your admin to allow the VPN egress IP instead of your home IP.
- Give them your current public IP from:
https://ifconfig.me - If your browser has a manual proxy configured, remove it.
- On Windows:
Settings → Network & Internet → Proxy - On macOS:
System Settings → Network → Wi‑Fi/Ethernet → Details → Proxies
- On Windows:
Verify it worked: log in again from the same device with VPN/proxy off and confirm the block page no longer appears.
Mobile carrier or ISP routed traffic through another city/country
- Switch off mobile data and connect to your usual Wi‑Fi.
- Retry the login.
- If you must use mobile data, send your current public IP to an admin so they can review whether it should be temporarily allowed.
- If this happens often on home internet, reboot your router once to obtain a fresh public IP.
⚠️ Rebooting a router can interrupt calls, meetings, and any devices using that connection for a few minutes.
Verify it worked: after switching networks, https://ifconfig.me shows a different IP and the login succeeds.
Your Zero Trust policy only allows specific countries, IPs, or office egress addresses
- Have an admin open the access policy in your provider dashboard. Look for a path like:
Security/Access → Applications → <your app> → Policies - Review rules for:
- allowed countries
- IP allowlists
- trusted network ranges in CIDR (IP range notation)
- office egress IPs
- Update the rule to include the legitimate location or IP.
- Example allowlist entry for a single IP:
203.0.113.24/32- Example allowlist entry for a small office range:
203.0.113.0/24 - Save the policy and ask the user to retry.
⚠️ Broadening an allowlist can weaken security. Add the smallest possible IP range, and prefer a temporary exception with an expiry if your provider supports it.
Verify it worked: the next access log entry changes from deny to allow for the same user and source IP.
You are traveling or working from a new location not yet approved
- Send your admin these two items:
- your public IP from
https://ifconfig.me - the country/city you are physically in
- your public IP from
- Ask for a temporary exception in the access policy for your current IP or country.
- If your provider supports device posture or MFA (multi-factor authentication), ask the admin to require that too, instead of opening access broadly.
- Once you return, have the temporary exception removed.
Verify it worked: you can log in from the travel network, and the access log shows your exception rule matched.
IP geolocation data is wrong or stale
- Confirm the wrong location using:
https://ipinfo.io/<your-ip> - As a short-term workaround, ask your admin to allow your exact IP instead of relying only on country matching.
- Example single-IP allowlist entry:
198.51.100.42/32 - Ask your ISP to correct the IP geolocation with major geolocation providers. This is usually done through the ISP's support channel.
- If possible, reconnect your router to obtain a different IP and test again.
Verify it worked: the IP lookup now shows the expected country, or the exact-IP allowlist lets you in without changing the country rule.
Corporate NAT or egress IP changed and the allowlist was not updated
- From the office network, get the current public IP:
https://ifconfig.me - Compare it to the trusted office IP in your access policy or documentation.
- Update the allowlist in the provider dashboard to the new egress IP.
- Example:
old: 203.0.113.10/32 new: 203.0.113.77/32 - If your ISP changes office IPs regularly, ask them for a static IP (fixed public IP) or move the policy to a VPN egress with a stable IP.
Verify it worked: users on the office network can log in again, and the access log shows the new office IP as allowed.
Prevention
- Add an access-log alert for location-based denies so you know before users open tickets. Export security logs to your log tool and alert on patterns like:
{"decision":"deny","reason":"geo_location_mismatch"} - Keep a documented list of trusted egress IPs for office, VPN, and remote admin networks. Store it in version control and review it after ISP or firewall changes:
{"office_ips":["203.0.113.77/32"],"vpn_ips":["198.51.100.10/32"]} - Prefer exact IP or device-based trust over country-only rules for admins and contractors. Country checks are useful, but mobile carriers and VPNs make them noisy.
- Add a quarterly test from each trusted network: open
https://ifconfig.me, compare it to the documented allowlist, and record the result. - If you manage policies as code, pin trusted ranges in config and review changes in pull requests:
{"allow":["203.0.113.77/32","198.51.100.10/32"],"require_mfa":true} - For traveling staff, create a temporary-access process with expiry so support does not have to widen permanent rules during urgent incidents.
This article was written by an AI system and published pending human review. Verify anything you intend to act on.
Have a project in mind?
Get an instant AI price estimate for it, or talk directly to our team.
One email a month on what we learn building with AI