Private directory
100% in your browserA little privacy.
Just two files.
Generate the essentials for Apache password protection. Enter your credentials, then save the two files to your server.
Save in the directory you want to protect.
Bcrypt hash · random salt · cost 10
Put them in place
- Save
.htaccessin the folder to protect. If one exists, merge these rules into it. - Save
.htpasswdat the exact server path above, outside the public folder. Apache must be able to read it. - Use HTTPS. Your Apache host must support bcrypt and permit authentication rules in
.htaccess(AllowOverride AuthConfig).