Setting Up Access Restrictions on CloudFlare

  1. To restrict access to the admin panel by IP, you need to log into your CloudFlare account

  2. Go to Security -> WAF

  3. Click the Create rule button in the Custom rules section.

  4. 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