Skip to content

Commit

Permalink
Update wordpress-rule-exclusions-before.conf (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
azurit authored Apr 5, 2024
1 parent db1535c commit 9994e7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/wordpress-rule-exclusions-before.conf
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/comment.php" \
#

# Gutenberg
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages)" \
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|templates)" \
"id:9507140,\
phase:1,\
pass,\
Expand Down Expand Up @@ -215,7 +215,7 @@ SecRule REQUEST_FILENAME "@endsWith /index.php" \

# Cannot update page|post in WordPress due to `x-http-method-override` header.
# This rule is a copy of rule 900250 and must be synchronised with that rule.
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|users)" \
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|users|templates)" \
"id:9507146,\
phase:1,\
pass,\
Expand Down

0 comments on commit 9994e7a

Please sign in to comment.