How to Block Microsoft 365 Access from Specific U.S. States
Question details
The user wants to block access to Microsoft 365 services and user sign-ins originating from specific individual U.S. states.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- Administrators are trying to enhance security or meet compliance requirements by restricting cloud access based on granular state-level geolocation.
- Observed behavior
- Microsoft 365 and Azure do not offer a simple built-in menu to select and block individual U.S. states, requiring workarounds using IP ranges.
Before configuring access policies, you must acquire a reliable and updated list of IP address ranges (CIDR blocks) for the specific U.S. states you intend to block, as Microsoft does not provide native state-level geolocation toggles.
Configure Microsoft Entra Conditional Access with Named Locations
Use this method to block user sign-in attempts from specific U.S. states by defining their public IP ranges as named locations in Azure.
Microsoft Entra (formerly Azure AD) allows blocking by country natively, but state-level blocking requires manual configuration of IP ranges. You must maintain these IP lists as internet routing dynamically changes.
Use a trusted third-party IP geolocation database (like MaxMind or IP2Location) to extract the specific IPv4 and IPv6 address ranges for the target U.S. state.
Sign in to the Azure Portal. Navigate to Security > Conditional Access > Named locations. Click 'IP ranges location', give it a name (e.g., 'Blocked State IPs'), and paste the CIDR ranges.
Go back to the Conditional Access menu and click 'New policy'. Name the policy and assign it to the specific users or groups you want to restrict.
Under Conditions, select 'Locations'. Choose 'Yes' to configure, select 'Include', and choose 'Selected locations'. Check the box for the named location you created in step 2.
Under Access controls, select 'Grant', then choose 'Block access'. Set 'Enable policy' to 'On' and click 'Create' to enforce the state-level restriction.

Block Emails from Specific States via Connection Filtering
If your primary goal is to block incoming malicious emails rather than user sign-ins, use Microsoft 365 Defender's connection filter policy.
Try WPS Office for a Lightweight Desktop Experience
While managing complex cloud infrastructure and access policies in Microsoft 365, you might need a fast, reliable desktop office suite that doesn't rely entirely on cloud connectivity. WPS Office is a powerful alternative that handles your daily document tasks offline with ease.

Frequently Asked Questions
Is there a built-in feature in Azure to select a U.S. state for blocking?
No, Microsoft Entra (Azure AD) currently only supports native geolocation blocking at the country or region level. To block a specific state, you must manually define the state's IP address ranges.
Where can I find the IP address ranges for specific U.S. states?
You will need to use a reputable third-party IP geolocation database or service, such as MaxMind, IP2Location, or DB-IP, to extract the specific IP blocks assigned to internet service providers in that state.
Will blocking an IP range guarantee that no one from that state can access Microsoft 365?
No system is completely foolproof. IP geolocation data can occasionally be outdated, and users can easily bypass these blocks by using Virtual Private Networks (VPNs), proxies, or mobile cellular networks that route traffic through exit nodes in different states.




