How to Create a Password on a Blog Page

For bloggers who blog on Blogger (Blogspot), if you want to create a special page that will be private, or can only be accessed by certain users, for example members or close friends, then this is how to create a password on the blog page (static page password protected).


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:
  1. Public (without password)
  2. Password protected (choose this one and enter your password!)
  3. 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:
  1. Login to blogger account >> Dashboard >> Pages >> New Page
  2. Fill the page with the content that you have prepared for password protection.
  3. Click HTML mode
  4. Copy and paste the blog page password script code at the very top or bottom.
  5. 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!

Related article

0 Comments