Disable mod security on a page

0

Hello I have a textarea in a form that will receive an iframe from soundcloud, problem is that when the user submits the page is returning error 403 Forbidden. I believe mod security is blocking the iframe. When we deactivated the server's mod security, it was possible to save the page.

My question is: Can I disable mod security in the .htacess file only from my application without having to disable it on every server?

Thank you.

    
asked by anonymous 29.01.2018 / 14:19

1 answer

0

Yes, you can disable it as follows:

<IfModule mod_security.c>
  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

Edit:

If the above solution does not work, try the following:

<IfModule mod_security.c>
  SecRuleEngine Off
  SecFilterInheritance Off
  SecFilterEngine Off
  SecFilterScanPOST Off
  SecRuleRemoveById 300015 3000016 3000017
</IfModule>
    
29.01.2018 / 14:36