Question

Subject: Redirection based on user agent
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?
		

Answer

Hello,

Thanks for reaching out to Cloudflare support.

You are right, Page Rules do not support redirection based on the user agent, but Redirect Rules provide exactly that functionality.

Follow these steps to set up such a rule

* Go to https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules/new
* Enter a name for your rule
* Select "Custom filter expression"
* Edit the expression manually and enter the following expression: (http.user_agent contains "MSIE 8.0")
* Enter the URL where such requests should be redirected to
* Click Deploy

That should configure a new rule which redirects requests with the mentioned user agent. Please let me know if you have any further questions regarding this topic.

Thank you very much,
Alexander

Reasoning

Basically an explanation of redirect rules.

Tools to use: curl with a customer user agent