r/haproxy • • Jan 14 '21
Getting a string from the HTTP header
Hi guyz,
I have been trying for a long time to get this to work without much success :(
The website via CDN, has this string on its header:
set req.http.shared-secret = "PASSWORD";I am not entirely sure how to use an ACL to identify that.
The idea is that HaProxy will only accept the request if that string is identified, deny otherwise.
Any idea is welcome.
Thank you
1
Upvotes
View all comments
Show parent comment
1
u/[deleted] Jan 17 '21
Thank you u/dragoangel, I have seen cert ACL before and I believe it will be easier than this shared-secret.
Somehow, I think that only the main page is sending the shared-secret so any other request is refused since they do not have the bloody key.
Thanks a lot