@cjstone wrote:
Hi,
HA-Proxy version 1.6.3
I’ve been trying several different variations of this:
acl bad_ua hdr(user-agent) -f /etc/haproxy/bad_uas.lst http-request deny if bad_ua
/bad_uas.lst:
Mozilla/5.0 (Linux; Android) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.131 Safari/537.36
My issue is that I don’t get match for the full string; it will only match if I strip everything up to and including the comma, like:
like Gecko) Chrome/34.0.1847.131 Safari/537.36
How to I get a match of the full string?
Thanks,
–Chris
Posts: 1
Participants: 1