Skip to content

Instantly share code, notes, and snippets.

@wbingli
Created March 25, 2014 04:45
Show Gist options
  • Save wbingli/9755405 to your computer and use it in GitHub Desktop.
Save wbingli/9755405 to your computer and use it in GitHub Desktop.
Mod security rule to only allow GET for specified request path
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