Skip to content

Knowledgebase

Diagnosing a ModSecurity false positive in Plesk

plesk, web-hosting

A legitimate website request can occasionally match a web application firewall rule. Confirm a false positive using the request context and ModSecurity audit information before changing protection. An HTTP 403 response alone is not proof that ModSecurity caused it.

Gather the details you will need

Record the exact domain, request path, time, method and safe reproduction steps. Do not collect customer passwords or unnecessary request bodies. A customer may need support to inspect server audit logs or create a narrowly scoped exception.

01 Diagnose a ModSecurity false positive in Plesk

  1. Find the matching website error and ModSecurity audit event. Record the rule ID, message and request identifier where available.
  2. Confirm the blocked operation is expected application behaviour and review whether the payload indicates a real vulnerability or compromised client.
  3. Check the application and rule-set versions for a supported correction. A code fix or vendor rule update may be preferable to an exception.
  4. If an exception is justified, have the authorized administrator scope it to the necessary rule and affected domain or request context using the supported Plesk/ModSecurity configuration. Avoid disabling the entire firewall across the server.
  5. Reproduce the harmless legitimate action once, then inspect the new audit result. Keep a record of the exception reason, owner and review date.

How do I verify a narrow ModSecurity exception?

Confirm the intended operation succeeds and protection remains active for the rest of the domain. Test related inputs that should still be rejected through an approved non-destructive test process, not by attacking live customer data.

If the problem continues

If there is no matching rule event, investigate filesystem permissions, application authorization, proxy rules and account status. A temporary detection-only mode changes enforcement and requires a controlled scope and restoration plan. Remove the exception when the application or rule set is corrected. Never publish complete audit logs that expose cookies, tokens or private request content.

Sources and further reading

Was this answer helpful?

Need a little more help?

Our support team can help you find the next step.

Contact support