How to create a Password Protected Page in Blogger?

Learn how to protect a Blog page by adding Password.

Comments: 22
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.

Speak Your Mind

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.
^_^

OK, how to password protect this >> PAGE URL HERE <<

I could set a passoword for a page, but people can still freely access the url in this location.href='PAGE URL HERE'; directly

Thank you

This trick is working for me. You have to replace 'PAGE URL HERE' with a blogger static page. Try it in another blog site and let me know. Thank you. :)

This is great, but it only works from desktops and laptops. It doesn't work for mobile devices and tablets. Any idea why?

Hi Andrew :(
Probably in Mobile device URL changes. you will see at the end of the URL it shows m? for this reason it doesn't work in mobile device.

bro
you try

it helps
thanks

Hi Sir Farday :)
I'm very glade to see you here. Thanks for dropping your comment.

Good job!! Thanks for sharing.I was looking alternatives for password protectionof my blog, your blog helped me.

Thanks william for your feedback. :up

Is it possible to make multiple passwords ?

Hi Ali :)
Yes this is possible to create multiple password in a Blog, but you have to use separate page. For each page you can create different password. Thank you.

I think this password protector work only for pages not posts. I want to protect blog posts only. Can you help me?

Hi Farhat this widget will work only on Pages not in post. :(

Ok listen. This is NOT how you create a login. This is one of the most insecure things you can do. First you should have a database to connect to and store passwords in. Passwords should at the very least be encrypted and you compare the encrypted versions, not the plain text. Now last if you're sticking that into the HTML you will be hacked in seconds.

Helpful until you get hacked.

I am agree with you. But this is a simple trick for Blogger platform user to create password on a specific page. :t

Facebook Group Community Code ConverterHide Code Converter Show EmoticonHide Emoticon

If you Got questions? Ask ’em below! While we’re here, you might like to leave a comment and let me know if you have any stories or questions.

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 *