It’s easier than you think to password protect your web pages. It doesn’t matter what your web maker is, or what system you run.
Firstly, go onto your webmaker and go onto the page you wish to password protect.
Now, you must add the following HTML Code into the Header of your page:
var pass1="Whatever You Want The Password to Be";
with the password of your choice.
Now make a new page on your website telling the user that the password they have entered is incorrect. Our example:
window.location="Wrong Password Site Address Here";
with the URL of the page you just created. When the user enters an incorrect password, then they will be taken to that page.
The password protection will look like: