Best way to password protect a folder?

I am trying to create a similar path to the Cpanel password protection directory where a pop-up window appears asking for the user for a username and password, but the Cpanel method is awesome, but my client knows nothing about how to do this, so I wanted to create a msgbox pop-up message. informing the visitor about entering the username and password, and I am completely confused about how to create it, and what kind of programming language support is similar to CPanel

+3
source share
2 answers

Create .htaccess With basic authentication (performed from a web browser). You must create a user and password file. You can put on a lot of mons online about this. For example: http://www.elated.com/articles/password-protecting-your-pages-with-htaccess/

+3
source

You want to protect the page with .htaccess.

There is a guide on how to do this here .

+1
source

Source: https://habr.com/ru/post/1741593/


All Articles