---
title: "How to Block Microsoft Exchange Autodiscover requests"
date: "2022-02-07T19:12:05+00:00"
summary: "Stop Exchange Autodiscover 404 errors with Cloudflare firewall rules. Block autodiscover.xml requests using a simple regex to keep your web logs clean."
image:
type: "article"
url: "/acquia-cloud-platform/help/94296-how-block-microsoft-exchange-autodiscover-requests"
id: "5e894e67-8ffa-41b7-bee1-14f17be04f43"
---

Incorrect configured Microsoft Exchange Autodiscover service can trigger your web logs with 404s from GET and POST requests for variations of autodiscover.xml.

To resolve this issue you can use the following in Cloudflare. This example uses a regular expression to block autodiscover.xml and autodiscover.src requests(Action should be Block):

    http.request.uri.path matches "/autodiscover.(xml|src)$"

![A black silhouette of a cat sitting, facing left, with its tail curled around its body.](https://acquia.widen.net/content/nqgc62geze/web/ka06g000001tvkq00N6g00000VCdgi0EM6g000002W0YN.png?animate=true&v=11659ee1-ad21-400d-8c53-d9cc9761b785)

![A black square with no visible content or details.](https://acquia.widen.net/content/cqstbiglem/web/ka06g000001tvkq00N6g00000VCdgi0EM6g000002W0YO.png?animate=true&v=1520e9fc-cde4-4755-ad9f-8d52d5203604)

Resources:
----------

*   [Block Microsoft Exchange Autodiscover requests](https://developers.cloudflare.com/firewall/recipes/block-ms-exchange-autodiscover)
*   [Controlling Outlook Autodiscover behavior](https://docs.microsoft.com/en-us/archive/blogs/kristinw/controlling-outlook-autodiscover-behavior)
*   [Outlook Autodiscover decision process | Choosing the right Autodiscover method](https://o365info.com/outlook-autodiscover-decision-process-choosing-the-right-autodiscover-method-part-14-of-36/)
*   [Summary of Outlook Autodiscover Order](https://enterpriseit.co/microsoft-exchange/outlook-autodiscover-order/)