ModSecurity Rules Writing Guidelines

Share/Save

Guides

Specific Tips

skipAfter

When using skipAfter, always skip to a SecMarker and not a regular rule. skipAfter would break id the regular rule is bypassed using a RemoveRule action or directive.

To overcome this limitation to create an exception without modifying an exitsing rule file that does not use SecMarket (for example the core rule set) use SecRuleUpdateActionById <rule> "pass,nolog" instead of SecRuleRemoveByID. however SecRuleUpdateActionById does not have a corresponding ctl action, so it can be used only for certain exceptions, but not to all.

    Post new comment

    Full HTML

    • Web page addresses and e-mail addresses turn into links automatically.
    • Lines and paragraphs break automatically.

    Filtered HTML

    • Web page addresses and e-mail addresses turn into links automatically.
    • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
    • Lines and paragraphs break automatically.

    Plain text

    • No HTML tags allowed.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Lines and paragraphs break automatically.