Cloudflare Docs
Learning Paths
Edit this page on GitHub
Set theme to dark (⇧+D)

Create a test policy

  1 min read

To ensure a smooth deployment, we recommend testing a simple policy before deploying DNS filtering to your organization.

​​ Test a policy in the browser

  1. Go to Gateway > Firewall policies.
  2. Create a policy to block all security categories:
    SelectorOperatorValueAction
    Security CategoriesinAll security risksBlock
  3. In the browser, go to malware.testcategory.com. You should see a generic Gateway block page.
  4. In Logs > Gateway > DNS, verify that you see the blocked domain.

You have now validated DNS filtering!