Skip to content

Commit

Permalink
fixing FP
Browse files Browse the repository at this point in the history
  • Loading branch information
azurit authored Apr 25, 2024
1 parent c9cfcce commit 944d8ff
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions plugins/wordpress-rule-exclusions-before.conf
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ SecRule REQUEST_FILENAME "@endsWith /wp-comments-post.php" \
ver:'wordpress-rule-exclusions-plugin/1.0.1'"

SecRule REQUEST_FILENAME "@endsWith /wp-admin/comment.php" \
"id:9507170,\
phase:2,\
"id:9507131,\
phase:1,\
pass,\
t:none,\
nolog,\
Expand All @@ -108,6 +108,24 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/comment.php" \
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:newcomment_author,\
ver:'wordpress-rule-exclusions-plugin/1.0.1'"

# Replying to a comment
SecRule REQUEST_FILENAME "@endsWith /wp-admin/admin-ajax.php" \
"id:9507132,\
phase:2,\
pass,\
t:none,\
nolog,\
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
chain"
SecRule ARGS:action "@streq replyto-comment" \
"t:none,\
chain"
SecRule &ARGS:action "@eq 1" \
"t:none,\
ctl:ruleRemoveTargetById=941100;ARGS:content,\
ctl:ruleRemoveTargetById=941160;ARGS:content,\
ctl:ruleRemoveTargetById=941310;ARGS:content"


#
# [ Gutenberg Editor ]
Expand Down

0 comments on commit 944d8ff

Please sign in to comment.