Question
Can a Cloudflare API User Service Key be restricted to specific IP addresses or ranges for enhanced security?
Asked by: USER4643
109 Viewed
109 Answers
Answer (109)
Yes, a significant security feature of Cloudflare API User Service Keys (API Tokens) is the ability to restrict their usage to specific client IP addresses or IP ranges. When creating or editing a token, you can add 'Client IP Address Filtering' by specifying one or more IP addresses or CIDR ranges. Any API requests made using that token that originate from an IP address outside of the defined list will be rejected by Cloudflare, providing an additional layer of security against unauthorized access, even if the token itself is leaked.