Policies

Cloudflare Gateway’s policy engine allows you to block domains by categories, manually block domains and override domains to allow them even if those domains are getting blocked by a category. You can assign a policy to one or multiple locations.

Configuring a policy

Blocking a domain See how you can block a domain using the policy engine.

Blocking domains by category Shows how you can block a group of domains or multiple groups of domains using category based DNS filtering.

Configuring a block page See how you can show a block page when a website is blocked by Gateway.

Adding a domain to the allow list See how you can force resolve a domain even if the domain is getting blocked by another policy.

Blocking all subdomains Provides examples of how you can block subdomains

Troubleshooting Policies Check out the most common issues you may face when you are setting up a policy.