In this htaccess tutorial, you will be able to learn how to password protect a folder using htaccess file.
Password Protect A Folder | Htaccess tutorial Knowledgethrusters
The .htaccess (Hypertext Access) file is an Apache distributed server configuration file. You can use the .htaccess file to set server configurations for a specific directory. This directory can be the root directory of your website or another subdirectory where the .htaccess file is created in order to enable extra features for that subdirectory.
htaccess tutorial:
Timings:
00:00 - Introduction
00:35 - Generate Htaccess Password
01:00 - Password Protect A Folder