Restricting access to a resource is often required when using the web. On complex web applications, this is often implemented using a login system which can be more or less sophisticated. If our requirements our pretty basic, however, we can use the authentication system provided by the Apache web server. In this tutorial we will see how can we do it.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-restrict-access-to-a-resource-using-apache-on-linux