password.htm
This section is for php script involving password, that work on debian 9.3 localhost.

User link to installed application. For these links to work, this index file must be placed in /var/www/html/password/password.htm. And the application must be installed in /var/www/html/password. Open firefox browser, then insert the address "localhost/password/password.htm".

GitHub
index
http://localhost is requesting your username and password. The site says: "Restricted area"
username= 'USERNAME'.     password= 'PASSWORD'.

password_protect
Include following code into every page you would like to protect, at the very beginning (first line):
Include code
test page
Please enter password to access this page     Login: admin     Password: adminpass
User will be redirected to this page after logout 'http://www.example.com/

passwords
'xyzzy'     'abcdef'     '123456'
passwordstest
test

phptoys
step3
Password = 'demo';

secured
secured     admin     adminpass

notes
notes