Skip to content

Instantly share code, notes, and snippets.

@ruckus
Created September 6, 2013 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruckus/6464900 to your computer and use it in GitHub Desktop.
Save ruckus/6464900 to your computer and use it in GitHub Desktop.
mod_rewrite rule to block a bare POST /
# Block POSTS to /
RewriteBase /
RewriteCond %{REQUEST_METHOD} POST [NC]
RewriteRule ^$ - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment