Wait a minute!
If you create a protected page or a password page on a WordPress blog, it's very easy. Just make a "New Page" and before publishing, just click "Edit" in the "Visibility" menu on the right.
Then there are three options:
- Public (without password)
- Password protected (choose this one and enter your password!)
- Private (can be seen by admin only)
How to Create a Password on a Blog Page
Continue….. this is how to create a password on a blogspot page:
- Login to blogger account >> Dashboard >> Pages >> New Page
- Fill the page with the content that you have prepared for password protection.
- Click HTML mode
- Copy and paste the blog page password script code at the very top or bottom.
- Publish!
So far, the construction phase has been completed. Please review the results.
Here's the script code:
<script language="JavaScript">
var password;
var pass1="PASSWORD";
password=prompt('Enter your password in order to view this page!',' ');
if (password==pass1) alert('Correct password, OK to enter!');
else {
window.location="SITE-LINK";
}
</script>
Notes:Replace the PASSWORD text with your password.Replace the SITE-LINK text with your Page URL.
Surely there are other ways to create a password on a blogspot page. I only share the method above because I have tested it and it works. Good Luck!