Last active
August 29, 2015 14:01
-
-
Save sebgates/c2a7547da8c4be20f8ce to your computer and use it in GitHub Desktop.
Code for adding at the top of your .htaccess file to create encrypted password before wp-login.php
This file contains 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
ErrorDocument 401 "Unauthorized Access! You need to provide valid credentials to login" | |
ErrorDocument 403 "Forbidden! You're not allowed to access this page." | |
<Files "wp-login.php"> | |
AuthName "Administrators Only!" | |
AuthType Basic | |
AuthUserFile /home/username/wplogin | |
require valid-user | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment