Back to index

Question 6: Redirection Based on User Agent

Hi,

Thank you for contacting us reagrding you queries.

Currently, Cloudflare Page Rules do not support redirection based on user agent strings directly.

However, you can achieve this functionality by using Cloudflare Workers. Workers allow you to write custom JavaScript that runs at the edge, where you can inspect the user agent header and perform conditional redirects.

Please contact us if you have any further questions or require assistance.

Best regards,
Priya.
Cloudflare Customer Support Team.