Welcome to My UI. Test Link

How to Create a Password Protected Page/Post in Blogger?



This tutorial will help you to create a password protected page on a blogger blog. Learn how to make your Blogger Static Page protected by the password defined by yourselves. And How to Set Up a Password Protected Page?

Password Protected page is only possible in WordPress Blog but what about Blogger? 

Can we protect certain page by adding password or not?

When I first began my tutorial blog in 2018 blogger was the most popular platform for me. However, because of its simplicity and less customization functionality, many people switch to WordPress after a few years. About the fact that Blogger is still constrained in many ways, most problems can be solved with a little study on the web. I'm comfortable with the Blogger platform and don't want to switch anytime soon!

I was trying to protect my several pages from restricting the visitors to visit but in Blogger platform hasn’t such things to protect it. Because Blogger doesn’t have Plugins for protecting any specific page. Either you have to add a password to the whole Blog or you have to make the Blog private. So our main objective won’t serve.

In WordPress Blog, we have seen Blog owner used password a protected page for delivering exclusive content to their VIP subscriber. Suppose you have written an eBook and now you want to deliver this eBook to your blog's subscriber-only. 

In this case, you won’t able to restrict access of all visitors on Blogger. In this case, the Password Protected page work like charm. Because without a password your Blog’s subscriber won’t able to get access to the content’s page.

So Password Protected option is necessary. You can increase your Blog subscriber as well as your exclusive content will be protected from public access.

How to Secure a page on your Blog with a Password?

The password is required to unlock the shared blog material, even though the page is marked as "published." Afterwards, the password can be shared with your newsletter subscribers. They can log in to view new material on a daily basis.

Simply follow the instructions below to build a password protected page.


Step 1:- Log in to your Blogger Account and Go to your Blogger Dashboard

Step 2:- Click on -> Pages -> New Page-> Blank Page

Or :- Click on -> Posts -> New Post-> Blank Post

Step 3:- Now choose HTML view instead of Compose view and copy the below script and paste it on the page


<script language="JavaScript"> <!-- Code By Script Helper 360 --!> var password = 'Enter_Your_Password' password=prompt('Please enter the password to enter this post:',''); if (password != 'Enter_Your_Password') { location.href='wrong_password_Redirect_URL'; } </script>


Step 4:- Finally hit the publish button.
For testing the password-protected page/post visit that page and see it is the required password to get access.

Customization :-

  • Alter Enter_Your_Password with page password.
  • Replace wrong_password_Redirect_URL with your 404 page URL.

In this trick, I have used simple JavaScript and just you have to set a password and you can change the password according to your own. And remember about changing page URL. You should change the URL for applying the password. 

In just 4 easy steps, you'll have a password-protected webpage! Now is the time to start creating a VIP Library of amazing content that your readers and potential subscribers would be compelled to subscribe to!