I am trying to setup a haproxy where I want to check the request http header and allow the incoming requests only if they contain particular header name and value? How can I achieve that?
Basically in the below example, I am trying to filter out requests that contains header name “x-abc-seprotection”. Is this a correct configuration to achieve what I am trying to achieve?
acl allow_users req.hdr(x-abc-seprotection)
use_backend backend_servers if allow_users