August 2017
Intermediate to advanced
278 pages
8h 53m
English
If we take a look at the .htpasswd file we created, it should look something like this:

This file contains the username, the algorithm used ($apr1 denotes a specific Apache MD5 implementation), the salt, and then the password. While some may be worried at the use of MD5, the htpasswd application iterates the password for 1,000 times to limit brute force attempts. This, combined with salting (the addition of random data) ensures that the password is very hard to brute force.
We will then define two extra directives within our location block directive to enable the basic authentication. The auth_basic directive enables authentication ...
Read now
Unlock full access