Block a request
Here is an example of a Tenant ACL rule that blocks incoming traffic from a specific geolocation country code.- Management API
- Go SDK
- Node SDK
- Terraform
- Deploy CLI
- Auth0 CLI
To create this Tenant ACL rule with the Management API:
-
Get a Management API access token with the
create:network_acls
scope. -
Call the Management API Create access control list endpoint with the following body:
Example of a block page

Allow a request
Here is an example of a Tenant ACL rule that allows traffic only from a specific geolocation country code.- Management API
- Go SDK
- Node SDK
- Terraform
- Deploy CLI
- Auth0 CLI
To create this Tenant ACL rule with the Management API:
-
Get a Management API access token with the
create:network_acls
scope. -
Call the Management API Create access control list endpoint with the following body:
Redirect a request
Here is an example of a Tenant ACL rule that redirects all traffic from a specific geolocation country code.- Management API
- Go SDK
- Node SDK
- Terraform
- Deploy CLI
- Auth0 CLI
To create this Tenant ACL rule with the Management API:
-
Get a Management API access token with the
create:network_acls
scope. -
Call the Management API Create access control list endpoint with the following body:
Complex comparisons
You can combine thematch
and not_match
operators in a single Tenant ACL rule to enforce fine-grained access policies.
Here is an example of a Tenant ACL rule that evaluates the geo_country_code
and geo_subdivision_code
signals to block all traffic from a given country except for a specific state, region, or province within that country.
- Management API
- Go SDK
- Node SDK
- Terraform
- Deploy CLI
- Auth0 CLI
To create this Tenant ACL rule with the Management API:
-
Get a Management API access token with the
create:network_acls
scope. -
Call the Management API Create access control list endpoint with the following body: