Plesk

How to disable ModSecurity in Plesk?

Question

How to disable ModSecurity in Plesk?

Answer

Server-wide level:

via Plesk UI

  1. Log into Plesk.

  2. Go to Tools & Settings > Web Application Firewall (ModSecurity) page.

  3. Set Web application firewall mode to Off and press OK button.

via CLI

  1. Connect to the server via SSH or RDP.

  2. Disable ModSecurity:

    # plesk bin server_pref --update-web-app-firewall -waf-rule-engine off

Domain level:

via Plesk UI

  1. Log into Plesk.

  2. Go to Domains > example.com > Web Application Firewall page.

  3. Set Web application firewall mode to Off and press OK button.

via CLI

  1. Connect to the server via SSH or RDP.

  2. Disable ModSecurity for a specified domain:

    # plesk bin subscription --update-web-app-firewall example.com -waf-rule-engine off

Note: example.com should be replaced with a required domain name.

Exit mobile version