Allowing only one user agent

Is it possible to Allow only one useragent with Cloudflare? So that if any ither user agent is used they get blocked if yes please guide me I am new to Cloudflare

Create a firewall rule that looks like this:

But what is your use case of just allowing one user agent?

3 Likes

Thank you very much
About the use case it is a little bit difficult for me to explain but my program uses a specific user agent and I update the user agent weekly so I don’t want the to block the ips I just want only my program to access it and I know there are better ways to do it but I always found this way useful when I was using another service before choosing Cloudflare it is not that top security but trust me it is very useful when you need a little control
Thank you again

1 Like

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