I want to allow only GoogleBots

I want to allow only GoogleBots.

Is there a way to do that?

From what I can tell you’ll need the Enterprise plan and use bot tags* and WAF to do that:

https://developers.cloudflare.com/bots/plans/bm-subscription/

https://developers.cloudflare.com/firewall/known-issues-and-faq/#how-do-i-create-an-exception-to-exclude-certain-requests-from-being-blocked-or-challenged

*maybe not currently:

Bot Tags Limitations

Currently, Bot Tags are only available in log fields.

Future work will add more values and extend Bot Tags to other Cloudflare products.

Known Bots (cf.client.bot) will be true for the actual Googlebot - so you can just check if cf.client.bot is true and the User-Agent includes Googlebot

But that’s a lot of other friendly bots, including other Google crawlers, that you’d be blocking - so I’d recommend just sticking with cf.client.bot overall

1 Like

thanks

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