- πͺπ¨Ecuador jwilson3
I don't think this is feasible to implement for Autoban because User Agent is not something tracked in the watchdog table.
Autoban only has access to:
type
- the module name where the log message originated.location
- the request URI.referrer
- the URI that referred the user to the site.hostname
- the user's IP address.message
- the raw message string passed to t() function.variables
- the serialized php array of arguments passed to t() function.
This would be better achieved in .htaccess file (to avoid the performance impact of loading Drupal), or by writing a custom module.
If you have access to alter .htaccess you might consider checking out Ng Firewall (blog post) - FYI, I am not the author, I just threw it up on Github, because the author doesn't use git apparently.