How to disable specific Web Application Firewall ModSecurity rules in Plesk

Follow

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
    Comment actions Permalink
  • Avatar
    Lexy19 Re

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

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request