Skip to content
This repository was archived by the owner on May 14, 2020. It is now read-only.

Commit dfc42dc

Browse files
authored
Merge pull request #1101 from lifeforms/wordpress-fp-insertmedia
WordPress: exclude Add Media, Insert Media, Insert into page
2 parents c875186 + ef360c9 commit dfc42dc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

rules/REQUEST-903.9002-WORDPRESS-EXCLUSION-RULES.conf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,21 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/admin-ajax.php" \
514514
"t:none,\
515515
ctl:ruleRemoveTargetById=931130;ARGS:menu-item[-1][menu-item-url]"
516516

517+
# Editor: Add Media, Insert Media, Insert into page
518+
SecRule REQUEST_FILENAME "@endsWith /wp-admin/admin-ajax.php" \
519+
"id:9002770,\
520+
phase:2,\
521+
pass,\
522+
t:none,\
523+
nolog,\
524+
chain"
525+
SecRule ARGS:action "@streq send-attachment-to-editor" \
526+
"t:none,\
527+
chain"
528+
SecRule &ARGS:action "@eq 1" \
529+
"t:none,\
530+
ctl:ruleRemoveTargetByTag=CRS;ARGS:html"
531+
517532

518533
#
519534
# [ Options and Settings ]

0 commit comments

Comments
 (0)