]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] added the 'block' keyword to the config language
authorWilly Tarreau <w@1wt.eu>
Sun, 6 May 2007 22:58:25 +0000 (00:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2007 21:24:51 +0000 (23:24 +0200)
commit5c8e3e09e91aec94cae6f0e1b1deb94ae51b23a2
treeb8e7a3b9ad35a679dbee78990fa4d10a429e045e
parent8797c06327f4e9fb123adc2b9eb5a01a93c28756
[MEDIUM] added the 'block' keyword to the config language

The new 'block' keyword makes it possible to block a request based on
ACL test results. Block accepts two optional arguments : 'if' <cond>
and 'unless' <cond>.

The request will be blocked with a 403 response if the condition is validated
(if) or if it is not (unless). Do not rely on this one too much, as it's more
of a proof of concept helping in developing other matches.
include/types/proxy.h
src/cfgparse.c
src/proto_http.c