disable/enable a modsecurity rule thru ssh
Is it possible to enable/disable a modsecurity rule(One of my custom rule) thru ssh? If yes, how to do it?
thanks.
-
edit /etc/apache2/conf.d/modsec/modsec2.user.conf remove or comment out rule then restart Apache 0 -
Hello @niceboy, I recommend using the following WHM API 1 functions if you want to edit or remove a rule via the command line: WHM API 1 Functions - modsec_edit_rule - Developer Documentation - cPanel Documentation WHM API 1 Functions - modsec_remove_rule - Developer Documentation - cPanel Documentation Command line examples are available under the "Examples" section. You can review all Mod_Security WHM API 1 functions at: WHM API 1 Sections - ModSecurity - Developer Documentation - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
2 comments