Haproxy block user-agent
-
Hello there,
I would like to block some user agents in haproxy like:
Baiduspider
Sosospider
Sogou
ZumBot
YandexI found some examples in haproxy community but Didn't make work in pfsense/haproxy, example:
acl blockedagent hdr_sub(user-agent) -i -f /etc/haproxy/blacklist.agent
http-request deny if blockedagentThanks in Advance,
Rodrigo
-
This seems to be old news, but I also can't find an answer.
In my case I need to create ACLs based on the user agent using PFSense, for a certain user agent redirect the traffic to a specific back end.
Did you find any solution at your end?
Thanks. -
@rlljorge said in Haproxy block user-agent:
Hello there,
I would like to block some user agents in haproxy like:
Baiduspider
Sosospider
Sogou
ZumBot
YandexI found some examples in haproxy community but Didn't make work in pfsense/haproxy, example:
acl blockedagent hdr_sub(user-agent) -i -f /etc/haproxy/blacklist.agent
http-request deny if blockedagentAnd how You resolve it ?