does anyone know how to use .htaccess to password protect directories? if so pls tell me how its done
This article should help → Password Protect a Directory Using .htaccess
Just go through the Password Protect Directories menu in the control panel, it will do everything for you. Note that that’s the only way you can protect directories because you can’t generate the encrypted passwords otherwise.
@thedude Just use the specialised section for password protected directories which you can find on your free hosting cPanel! No need to manually password protect your directories by using .htacess, you can simply use desired section for this feature in free hosting cPanel!