Cloudflare Deny IPs
1 min read

Cloudflare Deny IPs

Cloudflare Deny IPs
Photo by Fatih / Unsplash

Deny all except some IPs

Go to your domain on Cloudflare.

Choose the Security menu, and go to WAF.

Then, Create firewall rule type Rule name.

Fill the rule with this.

  • Field: IP Source Address
  • Operator: is not in
  • Value: 103.103.103.103, 104.104.104.104 (your allowed IP)
  • Choose an action (Required): Block

Finally, try to access your domain from IP that is unlisted.