Customer Query: I want to redirect visitor with specific user agent (*MSIE 8.0* for example) to a different page. It seems this is not possible with Cloudflare Page Rules. Is there any other way to achieve that using Cloudflare?
Hi there,
Great question and you're right: Page Rules don't support redirects based on user agents (like MSIE 8.0). But not to worry — Cloudflare has some more powerful tools that can help.
Here are a few options:
If you'd like, I can help you set up a custom Worker script for this use case. Just let me know what user agents you'd like to target and where you'd like to redirect them, and I'll provide a tailored code snippet.
Looking forward to helping you get this in place!
Best regards,
Aviv
Cloudflare Support
This question requires knowledge of Cloudflare's various ways to handle conditional redirects. The customer is correct that Page Rules can't do user-agent based redirects, so I need to provide alternative solutions.
Tools I would recommend:
My approach is to acknowledge the limitation of Page Rules while offering multiple alternative solutions. I've prioritized the options from most flexible (Workers) to more limited but potentially simpler options. I've also offered to provide a custom solution, which shows proactive support and builds customer confidence.