How to disable specific Web Application Firewall ModSecurity rules in Plesk

Comments

2 comments

  • Avatar
    Pascal Devif (Edited )

    Hi,
    Ok thx.
    If you want to disable a rule for a specific folder use this :

    <IfModule mod_security2.c>
        # General rules
        SecResponseBodyLimit 536870912
        SecRuleRemoveById 999777
        # A comment
        <Directory /var/www/vhosts/domain.tld/httpdocs/yourfolder>
            SecRuleRemoveById 999888
        </Directory>
    </IfModule>

    Replace domain.tld and yourfolder with correct informations for you ...

    0
  • Avatar
    Lexy19 Re

    This post was very insightful. Keep up the great content! URL

    0

Please sign in to leave a comment.

Have more questions? Submit a request