Static html page with authorization (password protection)?

I am creating a static html page. Statically, I mean that there will be no html content dynamically generated by the server. Just a set of .html files.

I want to force users who want to display the page to enter a username and password (or at least a password). Those who do not enter the correct password will not be able to enter the site. The password (and username) can be single (only one valid combination of username and password). Protection should not be super-secure, enough to keep random surfers, Googlebots, etc.

How can i do this?

+5
source share
2 answers

.htaccess. , . , 403.

, Apache, - Apache.

+1

All Articles