So if you have something IMPORTANT that you really want to password protect and not allow any access at all, DO NOT USE these and try alternative means.
USAGE – Insert the code in between the HEAD html tags of your webpage. Remember to replace our url ‘quickonlinetips.com’ with the url of your webpage.
Password Protection Script 1
Password Protection Script 2
Insert this code in the ‘Head’ tags of the web page. When you enter the page, it will ask for a password, currently set to ‘secretpassword’. If the password is correct, you will be allowed to enter the page. Otherwise you can set it to redirect to any other page, currently it is set to this blog.
Insert these scripts into your html code for simple password protection of your pages. But remember the warning as mentioned before.