Setup .Htaccess Locks:
- Login to website FTP where you want to add in the password lock to the site – the logins can be found in LastPass.
- Navigate to WordPress root of the site files
- If on Dev this is /public_html/SITENAME
- If on a live site this is /public_html
- Create 2 files in the roof of this above folder – if you are doing this through cPanel, you will need to make sure hidden files are viewable, this can be done by clicking settings in the File Manager and ticking ‘Show Hidden Files (dotfiles)’ and then Save
- .htaccess
- .htpasswd
- Make sure both files have the permissions 0644
- Copy and paste the following into the .Htaccess file:
AuthName “Restricted Area”
AuthType Basic
AuthUserFile .htpasswd
AuthGroupFile /dev/null
require valid-user - Copy and Paste the following into .htpasswd:
admin:Q1UecezgMq84Q
user:fbMR./cCZVnLs - This will then setup the following Logins:
admin: silvertoad
user: silvertoad