Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4849

How to allow http requests containing specific header name and value

$
0
0

@9312ankit wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4849

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>