Issue
How I can disable the mod_security or OSSEC rule?
Environment
- Imunify360
Solution
This may be necessary if you need to test your code or disable a specific rule. So, if you have an issue with regular CMS installation and script, it can be a false-positive incident. You can report to our support team.
You can stop the mod_security rule per domain, OSSEC for all domains. Please use this guide to disable the mod_sec rule using UI, or use CLI.
Also, mod_security can be disabled with this .htaccess file:
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
Useful links
- https://docs.imunify360.com/dashboard/#disabled-rules
- https://docs.imunify360.com/command_line_interface/#rules
Comments
0 comments
Please sign in to leave a comment.