I want to hide my sitemap from competitors but not from search engines

I want to hide my sitemap from competitors but not from search engines. How can I achieve this using rule? Please guide step by step

1 Like

Hi,

Create a WAF/Firewall Rule with action “Block”, and the following expression:

(not cf.client.bot and http.request.uri.path contains "sitemap")

This will prevent anyone not on Cloudflare’s Known Bots list to access any file containing the word sitemap in its name.

You’ll find step-by-step instructions in the documentation of Firewall Rules below.

4 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.