<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Exclude Users From Location-Based Deny Policies in Okta
Administration
Okta Classic Engine
Okta Identity Engine
Overview

To exclude specific users from location-based deny policies, configure a dynamic network zone in Okta without the block access setting enabled, and apply a deny rule within the authentication policies that explicitly excludes the required users.

Applies To
  • Okta Identity Engine (OIE)
  • Okta Classic Engine
  • Security
  • Network Zones
Solution

How can Administrators add a dynamic zone to block specific countries from accessing the Okta organization?

 

Create a dynamic network zone to define the countries that require blocking by navigating to the network security settings.

  1. Navigate to the Admin Console.
  2. Go to Security > Networks.
  3. Click Add Zone > Dynamic Zone.
  4. Define the countries that require blocking.

    How does the block access setting affect policy evaluation?

    The behavior of the dynamic zone depends on whether the block access setting is enabled or disabled.

    • If the Block access from IPs matching conditions listed in this zone checkbox is selected, clients from the blocked countries network zone cannot access any URL for the organization. Okta automatically blocks requests before any policy evaluation occurs, preventing access to the login screen.
    • If the Block access from IPs matching conditions listed in this zone checkbox is cleared, clients from the blocked countries network zone can access the URL for the organization. Okta evaluates the requests based on the policy after the username is entered, allowing access to the login screen.

     

    What are the steps to exclude users from location-based deny policies in Okta Identity Engine (OIE)?

     

    To exclude specific users in Okta Identity Engine, clear the block access checkbox in the dynamic zone and add a deny rule to the applicable Global Session Policies.

     

    1. Clear the Block access from IPs matching conditions listed in this zone checkbox in the dynamic zone.

    Edit Dynamic Zone

    1. Add a rule to the top of each applicable Global Session Policy to deny the blocked countries' network zone when Okta first evaluates the policies.
    2. Exclude the required users from this deny rule.

    Rule

    NOTE: While blocked countries can access the login screen using this method, Okta denies access if the username is not excluded from the deny policy. Update the Default Policy, as it applies to everyone, along with any other applicable policies. 

    What are the steps to exclude users from location-based deny policies in Okta Classic Engine?

     

    To exclude specific users in Okta Classic Engine, clear the block access checkbox in the dynamic zone and create a new sign-on policy with a deny rule.

    1. Clear the Block access from IPs matching conditions listed in this zone checkbox in the dynamic zone.

    Edit Dynamic Zone

    1. Navigate to Security > Authentication > Sign On.
    2. Click Add New Okta Sign-on Policy.
    3. Enter Block Blocklisted Countries in the policy name field.
    4. Enter a policy description.
    5. Assign the policy to Everyone.
    6. Click Create policy and then click Add rule.
    7. Enter Block blocklisted countries in the rule name field.
    8. Exclude the required users individually, as Okta does not support adding groups for this exclusion.
    9. Select In zone for the If the User's IP is dropdown menu.
    10. Select Blocklisted Countries for the Zone dropdown menu.
    11. Select Denied for the THEN Access is dropdown menu.
    12. Click Create rule.
    13. Drag the rule to the top of the list.

    Related References

    Loading
    Exclude Users From Location-Based Deny Policies in Okta