Setting Up Access Restrictions on CloudFlare
Important: When setting restrictions on Cloudflare, don't forget to set restrictions on the API. This is critically important because restrictions on Cloudflare only limit the visual representation of the admin panel and do not limit requests to the Admin API.
To restrict access to the admin panel by IP, you need to log into your CloudFlare account
Go to
Click the button in the Custom rules section.
Fill out the form: \
Rule name: Admin block ip
When incoming requests match…
Field: Hostname
Operator: is in
Value: %Your panel domain without https and slashes%\
AND
Field: IP Source address
Operator: is not in
Value: Your IP or multiple IPs
Then…
Block
After that, click the Deploy button
Example of how the rule should look:
API Login Restriction:
Last updated