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

Add ModSec rule for Gutenberg template edits

parent e159177e
Branches
No related tags found
No related merge requests found
......@@ -71,3 +71,12 @@ SecRule REQUEST_URI "@beginsWith /wp-admin/network/settings.php" \
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:wp-piwik[tracking_code],\
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:wp-piwik[noscript_code]"
# Gutenberg comments are misinterpreted.
SecRule REQUEST_URI "@beginsWith /wp-json/wp/v2/template-parts" \
"id:1011,\
phase:2,\
pass,\
nolog,\
ctl:ruleRemoveTargetByID=932105;ARGS:content,\
ctl:ruleRemoveTargetByID=941100;ARGS:content"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment