I\'m working on blocking a folder with .htaccess, which I\'ve never used before, and I\'m having some trouble. Here\'s what I have
.htaccess (located in the folder I
Permissions can cause this issue too.
Make sure .htpasswd is readable by the web server user.
.htpasswd
For instance, if you use nginx check the nginx.conf to find out what the server user is, if you use Apache you can find it out this way, etc.
nginx.conf
Then set the right owners and read permissions to .htpasswd