Fail to add new rule to mod_security
AnsweredHello,
I am trying to add a rule to block access for specific file (bannerclick.php), but error after trying to publish rule
Error: The system could not deploy the configuration file
"modsec/modsec2.user.conf". Review the WHM error_log file for more
details about the error.
SecRule REQUEST_URI "@contains bannerclick.php" \
"id:9999999,\
phase:1,\
deny,\
msg:'File blocked by policy',\
status:403,\
severity:'CRITICAL',\
log"
-
Already resolved, The rule is fine.
For some reason when ticking the box "Deploy and Restart Apache" it fails, but go back to main page and deploy worked.0 -
I'm glad you were able to resolve this issue - thanks for sharing the solution!
0
Please sign in to leave a comment.
Comments
2 comments