Skip to content

Instantly share code, notes, and snippets.

@cristianraiber
Created May 4, 2016 21:23
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 cristianraiber/756175eb9d612ab07d5d721dc891f32c to your computer and use it in GitHub Desktop.
Save cristianraiber/756175eb9d612ab07d5d721dc891f32c to your computer and use it in GitHub Desktop.
Protect wp-login
# Protect wp-login
<Files wp-login.php>
AuthUserFile ~/.htpasswd
AuthName "Private access"
AuthType Basic
require user mysecretuser
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment