Skip to main content

mod security issue

Comments

6 comments

  • cPanelMichael
    Hello :) I recommend first reading the following document for information about using Mod_Security and implementing custom rules: EasyApache - Mod_Security Then, once you have ensured your rule is correctly formatted with a rule ID, check /usr/local/apache/logs/error_log for the specific error message associated with the rule you have added. Restarting Apache should also generate a specific error related to the rule. Thank you.
    0
  • quizknows
    You need to ID the rule. Try this: SecRule RESPONSE_BODY "" "deny,id:2000345,msg:'PHP source code disclosure blocked'"
    0
  • hostnex
    we arr trying to use the rules given in this post but getting error on Apache restart
    0
  • cPanelMichael
    That post is from 2011, and likely is intended for an earlier version of Mod_Security. Did you try the rule from user quizknows in the post before yours? Thank you.
    0
  • hostnex
    is there any post on the cpanel forum from we can have some good mod security rules. Gotroot doesn't give free rules anymore :(
    0
  • cPanelMichael
    There is a thread on this with some alternatives at: Atomic Corp No Longer Provides Free Rules Thank you.
    0

Please sign in to leave a comment.