-------------------------------------------------------------------------------------- Create .htpasswd file to root directory (or anywhere) and add the username: password -------------------------------------------------------------------------------------- Username:Password [Use any website or https://heyletslearnsomething.com/htpasswd-generator to encrypt the username / password ----------------------------------------------------------------------------- Create .php file and keep it where the .htpasswd file to find the exact path ----------------------------------------------------------------------------- ----------------------------------------------------- Create .htaccess file and add it to Wp-admin Folder ----------------------------------------------------- AuthType Basic AuthName "Restricted Area" AuthUserFile /path/to/.htpasswd (copy the above path) Require valid-user -----------------------------------------------------