Cloudflare 中文文档
Learning Paths
编辑这个页面
跳转官方原文档
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:
    Selector Operator Value Action
    Security Categories in All security risks Block
  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!