Skip to content

Instantly share code, notes, and snippets.

@stefanpejcic
Created August 29, 2019 11:47
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 stefanpejcic/e53b683f964a9ce907fba6a3e4109d9b to your computer and use it in GitHub Desktop.
Save stefanpejcic/e53b683f964a9ce907fba6a3e4109d9b to your computer and use it in GitHub Desktop.
brute-force disable
RewriteEngine on
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{HTTP_REFERER} !^http://(.*)?example\.com [NC]
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteRule ^(.*)$ - [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment