Using Cloudflare Workers to Redirect Googlebot

So I want to redirect the Googlebot but no other traffic. Does anyone know how to do this with Clouflare Workers? Or any other way of doing this through Cloudflare?

Any assistance is greatly appreciated –

Right now you’d need workers to do this - there are various examples in our documentation for redirecting - here’s the most basic:

You’d need to add some logic here based on the presence of the google bot user-agent and if you’re a bot management customer, you could also look for the “verified bot” parameter:

1 Like

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