I'm using ModSecurity WAF with Apache. I wanted to know if there's a way I can restrict to only few browser agent type? I want to do this for two reasons:
- Force the users to use an updated browser.
- Deny reconnaissance. Thus most bots on the internet use useragent that doesn't reflect a browser or an useragent that uses an outdated browser identifier.
Hence for example, I want to block chrome 69 and below, is there a way that i can use ModSecurity (including the CRS ruleset) to block anything but the following:
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
I have removed the OS part to ensure any OS can work.