How to create a Password Protected Page in Blogger?

Learn how to protect a Blog page by adding Password.

7
data:blog.title
add password to blog page

Password Protected page is only possible in WordPress Blog but what about Blogger? Can we protect certain page by adding password or not?

I was trying to protect my several page for restricting the visitors to visit but in Blogger platform hasn’t such things to protect it. Because Blogger don’t have Plugins for protecting any specific page. Either you have to add password on 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 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 blogs subscriber only. In this case you won’t able restrict access of all visitors on Blogger. In this case Password Protected page work like charm. Because without password your Blog’s subscriber won’t able to get access on 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. To add password on specific Blogger page please follow the below steps-

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

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

Step 3 Now choose HTML view instead of Compose view and copy the below script and Paste it on the page.
 
<script type="text/javascript"> 
/* Password Protection Script by www.bloggerspice.com*/
var password = 'BloggerSpice'
password=prompt('Please enter the password to enter this page:','');
if (password != 'BloggerSpice') {
location.href='PAGE URL HERE';
}
</script>

Customization


  • Alter BloggerSpice with page password.
  • Replace PAGE URL HERE with your page URL where you want to set password.

Step 4 Finally hit the publish button.

For testing the password protected page visit that page and see it is required password to get access.

protect page by password

In this trick I have used simple JavaScript and just you have to set password and you can change password according to your own. And remember about to change page URL. You should change URL for applying the password. Thank you.
How to create a Password Protected Page in Blogger?
4 Stars stars - "How to create a Password Protected Page in Blogger?" Password Protected page is only possible in WordPress Blog but what about Blogger? Can we prote...

Post a Comment

hey thanks for sharing the tricks! it comes in handy. useful stuff!

Welcome Trini Ng.. Love to hear feedback from you. ;)

bro it works on all pages as well as home page... I just need a post protector not a blog??? please help

Tahir Habib | Tipricks

Hi Tahir, I think you have forgot to add your Post URL. Please replace PAGE URL HERE with your Blog Post URL. And now it will work on your specific post page.

location.href='PAGE URL HERE';

Thank you

:-bd

This was SO helpful and above else EASY to understand. Thank you so much!!

it affects all entire page even if you specify the url

HI Walmart, I don't think so, because I have tested this it is working fine.
^_^

Facebook Group Community Disqus Channel Code ConverterHide Code Converter Show EmoticonHide Emoticon

Got questions? Ask ’em below! While we’re here, you might like to give any feedback about this Post, Your comment inspire us to continuous Improvement of This Blog and Contents. Your words are your own, so be nice and helpful if you can. Please, only use your REAL NAME, not your business name or keywords. Using business name or keywords instead of your real name will lead to the comment being deleted. Anonymous commenting is not allowed either. Limit the amount of links submitted in your comment. We accept clean XHTML in comments, but don't overdo it please.

Make sure you tick the Notify Me box below the comment form to be notified of follow up comments and replies. Thank you for commenting

Contact Form

Name

Email *

Message *