Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit 4907c6e

Browse files
committed
Change chain order
1 parent 94c4853 commit 4907c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/REQUEST-905-COMMON-EXCEPTIONS.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SecRule REQUEST_LINE "@streq GET /" \
3232
#
3333
# Exception for Apache internal dummy connection
3434
#
35-
SecRule REQUEST_LINE "@rx ^(?:GET /|OPTIONS \*) HTTP/[12]\.[01]$" \
35+
SecRule REQUEST_HEADERS:User-Agent "@endsWith (internal dummy connection)" \
3636
"id:905110,\
3737
phase:1,\
3838
pass,\
@@ -46,7 +46,7 @@ SecRule REQUEST_LINE "@rx ^(?:GET /|OPTIONS \*) HTTP/[12]\.[01]$" \
4646
SecRule REMOTE_ADDR "@ipMatch 127.0.0.1,::1" \
4747
"t:none,\
4848
chain"
49-
SecRule REQUEST_HEADERS:User-Agent "@rx ^.*\(internal dummy connection\)$" \
49+
SecRule REQUEST_LINE "@rx ^(?:GET /|OPTIONS \*) HTTP/[12]\.[01]$" \
5050
"t:none,\
5151
ctl:ruleEngine=Off,\
5252
ctl:auditEngine=Off"

0 commit comments

Comments
 (0)