Score:1

Haproxy deny domain and path with map

sm flag
kzn

I would like to make deny for specific domains + path preferably using maps or text file in haproxy. For example, I would like to define file with domain:

example.com/test-path
example2.com/another-path
etc.

And do deny for each domain + url in the file. Is such a configuration possible in haproxy? I know i can do that using simple acl:

acl block_example_path path_beg /test-path
acl block_example_domain hdr(host) -i example.com

acl block_example2_path path_beg /another-path
acl block_example2_domain hdr(host) -i example2.com

http-request deny if block_example_domain block_example_path
http-request deny if block_example2_domain block_example2_path

But potentially I will have a lot of these domains, which will cause a terrible problem to keep it in the config file.

Does anyone have an idea how to do this using a defined domain+path file?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.