Recommended method for blocking useragents globally?

LSUser12

Well-Known Member
#1
Blocking user-agents at the .htaccess level is easy, but what about in the scenario where we want to block every request to the web server for a specific user-agent (ideally multiple bad user-agents)? What is the recommended method for accomplishing that?
 

wanah

Well-Known Member
#2
It would be using a modsecurity rule.

We use Comodo's rules and it has a section in their cPanel plugin interface to add banned user agents.
 
Top