Skip to content

Commit 8b2c869

Browse files
committed
Add commented-out sample rule to engage JSON Processor for more subtypes
1 parent b32cc16 commit 8b2c869

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modsecurity.conf-recommended

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ SecRule REQUEST_HEADERS:Content-Type "(?:application(?:/soap\+|/)|text/)xml" \
2929
SecRule REQUEST_HEADERS:Content-Type "application/json" \
3030
"id:'200001',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=JSON"
3131

32+
# Sample rule to enable JSON request body parser for more subtypes.
33+
# Uncomment or adapt this rule if you want to engage the JSON
34+
# Processor for "+json" subtypes
35+
#
36+
#SecRule REQUEST_HEADERS:Content-Type "^application/.+[+]json$" \
37+
# "id:'200006',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=JSON"
38+
3239
# Maximum request body size we will accept for buffering. If you support
3340
# file uploads then the value given on the first line has to be as large
3441
# as the largest file you are willing to accept. The second value refers

0 commit comments

Comments
 (0)