Skip to content
Snippets Groups Projects
Commit 77e73a73 authored by ale's avatar ale
Browse files

Add gutenberg-related mod_security rules

These should help with converting widgets from legacy to
new 'blocks'.
parent 9faab2cd
No related branches found
No related tags found
No related merge requests found
......@@ -69,3 +69,17 @@ SecRule REQUEST_URI "@beginsWith /" \
ctl:ruleRemoveTargetByTag=attack-sqli;ARGS:message_body,\
ctl:ruleRemoveTargetByTag=attack-sqli;ARGS:text"
# Gutenberg-related requests.
SecRule REQUEST_URI "@beginsWith /wp-json/batch/v1" \
"id:1007,\
phase:2,\
pass,\
nolog,\
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:requests.requests.body.instance.raw.content"
SecRule REQUEST_URI "@beginsWith /wp-json/wp/v2/widget-types/text/encode" \
"id:1008,\
pass,\
nolog,\
ctl:ruleEngine=Off"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment