Notice: Follow our newsletter for the latest article ↳Click me

How do I create a password-protected in Blogger?

Post password protection,Page production,Post and page security lock,Blogger protected, password-protected in Blogger post and page , blogger trips

A question we often get is how to password protect blogger posts and pages.

Even if we assume that it can be done safely, we will discuss it today! We have seen that WordPress websites can be password-protected.

But it's better not to say again that Blogger cannot be password protected.

Because according to Google instructions, it is not possible to use a password on the Blogspot website.

Although Google strictly observes some of its rules, the Blogger website is very selective. Because it is owned by Google.

But we can give you some hope that you can protect passwords with some JavaScript. Password protection is not 100% guaranteed to work, nor is it safe to say so.

There are some functions that protect it. If you want, you can protect your blogger posts and pages by doing some coding.

But there are some expert developers who can crack it effortlessly. In this case, I can say that this protection does not guarantee you a 100 percent guarantee.

So we can say it works 90 to 95% effectively.

We use password sanity in WordPress, but it is not preferred on the Blogger website.

Although the Blogger website is a popular platform where people write regularly, if ever Google changes its mind and shares a password tool or alternative, we'll consider it 100% functional.

But the tips we are going to share are never 100% guaranteed. Without further ado, let's move on.

You can copy the Java script given below and use it wherever you want. You can use it on Blogger pages and posts.

By using this code, you can be 90% sure that it will work for you.

I say 90% in terms of privacy, but 100% in terms of functionality.

It will definitely work if you only put the password in two places.

<script type="text/javascript"> 
* Script to Protect Passwords *
var password = '112233'
password=prompt('Access to this page requires the password.:','');
if (password != '112233') 
{ location.href='/'; }
</script>

Enter or change the password as you wish in the 112233 yellow space. The rest of the code remains the same. Then enter it in the place where you want to use it, and your script will work.

If you have trouble understanding it, you can join our Telegram group and publish it in detail. Or you can leave your opinion in the comment box.

Have fun blogging! Thanks.


Website development, Canva design, video and article writing.

Post a Comment

If you benefited from reading the post, don't forget to leave a comment!