Block IP based on User-Agent string
Posted: 21 Sep 2010, 06:14
I haven't found/seen a way to do this yet. It would be nice for some annoying bots to be able to block an IP based on the User-Agent string found in the packet.
Can this be done currently? If not, would it be easy to implement into the code or quite complex?
I'm thinking that if available, it could have a port # option, a destination IP option (if you want to limit checking to certain IP addresses), a "string" option.
For ease, it could be limited to only port 80 or 443 and only examine those types of packets. Just thinking that there may be a use for it with other ports such as SMTP transactions with known spammer client strings.
Can this be done currently? If not, would it be easy to implement into the code or quite complex?
I'm thinking that if available, it could have a port # option, a destination IP option (if you want to limit checking to certain IP addresses), a "string" option.
For ease, it could be limited to only port 80 or 443 and only examine those types of packets. Just thinking that there may be a use for it with other ports such as SMTP transactions with known spammer client strings.