Skip to main content

Recurring WAF (ModSecurity) issue with Brizy updates on cPanel

Comments

2 comments

  • KC George

    Hello Kazik,

    We usually recommended the following ModSecurity limits in case of 413 errors.

    SecRequestBodyLimit 4194304
    SecRequestBodyNoFilesLimit 2097152

      SecRequestBodyInMemoryLimit needs to be set based on the available RAM on the server.

    0
  • Kazimierz Karczewski

    Thanks for your reply.

    I tested the recommended ModSecurity limits:

    • SecRequestBodyLimit 4194304
    • SecRequestBodyNoFilesLimit 2097152

    Unfortunately, in a real production scenario with Brizy, these values are simply too low. The editor generates significantly larger POST payloads (JSON + base64 content), and with those limits in place the request body parsing fails, resulting in 413 errors or WAF interference.

    In our case, the issue was resolved only after increasing the limits substantially (e.g. 100MB+). This suggests that current recommendations may not reflect actual payload sizes produced by Brizy, especially on more complex pages.

    From an operational perspective, this creates a recurring problem on typical hosting stacks (cPanel + CloudLinux + Imunify360), where default or recommended WAF limits are too restrictive for modern page builders.

    It might be worth revisiting these recommendations or documenting more realistic values for environments using Brizy in production.

    Everything is working correctly now after adjusting the limits, but I expect this issue will continue to affect other users unless addressed.

    Best regards,
    Kazik

    0

Please sign in to leave a comment.