This article aims to provide insights on how APIs can block specific IPs in Okta.
- Okta API
- Network Zones
- Blocklist
The Okta Zones API can be used to configure a Network Zone inside the Okta tenant, blocking specific IPs or IP ranges.
To create a Network Zone, the following API call can be used:
{yourOktaDomain}/api/v1/zones
NOTE:
- For an IP Network Zone, ensure to define either
gatewaysorproxies. - For a Dynamic Network Zone, ensure to define at least one of the following:
asns,locations, orproxyType. - For an Enhanced Dynamic Network Zone, ensure to define at least one of the following:
asns,locations, oripServiceCategories. - This operation can also be done from the Okta Admin Console by going to Security > Networks.
