Customer Support Response - Redirect by User Agent

Customer Question: I want to redirect visitor with specific user agent (*MSIE 8.0* for example) to a different page. Is there any other way to achieve that using Cloudflare?

Response:

Hi there,

Thanks for reaching out.You’re right – Cloudflare Page Rules don’t support redirection based on User Agent. However, you can achieve this behavior using a Cloudflare Worker.

Regards,

Hugo Cabrita

Thought Process:

Cloudflare Workers allow you to inspect request headers and implement custom logic, including redirection based on User Agent string.

Tools Used: