Skip to content

Instantly share code, notes, and snippets.

@dipakcg
Created June 20, 2019 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dipakcg/efd64b6a033aad6886f3b3859a6fed2a to your computer and use it in GitHub Desktop.
Save dipakcg/efd64b6a033aad6886f3b3859a6fed2a to your computer and use it in GitHub Desktop.
Specific rules for WordPress exclusion under ModSecurity (mod_security)
<locationmatch "/wp-admin/admin-ajax.php">
SecRuleRemoveById 300013
SecRuleRemoveById 300015
SecRuleRemoveById 300016
SecRuleRemoveById 300017
SecRuleRemoveById 949110
SecRuleRemoveById 980130
</locationmatch>
<locationmatch "/wp-admin/page.php">
SecRuleRemoveById 300013
SecRuleRemoveById 300015
SecRuleRemoveById 300016
SecRuleRemoveById 300017
SecRuleRemoveById 949110
SecRuleRemoveById 980130
</locationmatch>
<locationmatch "/wp-admin/post.php">
SecRuleRemoveById 300013
SecRuleRemoveById 300015
SecRuleRemoveById 300016
SecRuleRemoveById 300017
SecRuleRemoveById 949110
SecRuleRemoveById 980130
</locationmatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment