[ Web Proxy ]
URL:
Viewing: https://developers.cloudflare.com/waf/custom-rules/use-cases/block-ms-exchange-autodiscover/ [Back]  [Original]

Block Microsoft Exchange Autodiscover requests Cloudflare Web Application Firewall (WAF) docsSkip to content
SearchCtrlKLog in
  1. Home
  2. /WAF
  3. /
  4. /Common use cases
  5. /Block Microsoft Exchange Autodiscover requests

Block Microsoft Exchange Autodiscover requests

Last updated May 5, 2026Copy as MarkdownView as MarkdownAgent setup

In some cases, Microsoft Exchange Autodiscover service requests can be "noisy", triggering large numbers of HTTP 404 (Not found) errors.

This example custom rule blocks requests for autodiscover.xml and autodiscover.src:

  • When incoming requests match:

    Use the expression editor:
    (ends_with(http.request.uri.path, "/autodiscover.xml") or ends_with(http.request.uri.path, "/autodiscover.src"))

  • Then take action: Block

Alternatively, customers on a Business or Enterprise plan can use the matches comparison operator for the same purpose. For this example, the expression would be the following:

(http.request.uri.path matches "/autodiscover.(xml|src)$")
PreviousAllow traffic from specific countries onlyNextBlock requests by attack score

Was this helpful?

YesNo
Edit pageReport issue
[]

Web Proxy Viewer  |  New URL  |  Original Page