User Tools

Site Tools


passwordprotectwordpresswebpage

This is an old revision of the document!


TinkersDocs Home Back to tektinkers.com

Password Protect your Wordpress Webpage

Setup Basic Authentication

Create a .htpasswd fire.

htpasswd -c /path/to/.htpasswd username


Add the following lines to the .htaccess file.

AuthType Basic
AuthName "Restricted Area"
AuthUserFile /path/to/.htpasswd
Require valid-user


Ensure the AuthUserFile path matches where you stored the .htpasswd file


If Authentication Isn't Working

Modify the httpd.conf file to allow .htaccess authentication

AllowOverride AuthConfig


Restart Apache to apply.

sudo service apache2 restart
passwordprotectwordpresswebpage.1748972119.txt.gz · Last modified: 2025/06/03 17:35 by tektinkers