Created
March 25, 2014 04:45
-
-
Save wbingli/9755405 to your computer and use it in GitHub Desktop.
Mod security rule to only allow GET for specified request path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SecRule REQUEST_URI "/getonly" "chain,log,deny,status:403,phase:2,id:1234567010" | |
SecRule REQUEST_METHOD "!@rx ^(?:GET)$" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment