How To Add and Encrypt Password To Post and Pages On Blogger Platform

0

I will be showing Blogger Platform users how to add or enable Password on any post. these features is common for weebly and wordpress users. But the feature isn’t on blogger.

So therefore we will be enabling it using a Javascript. You might want to share a special article to few readers on your blog, so therefore you will need to encrypt Password on that particular article, with a dedicated password you choose. in this tutorial i will show you all you need to to enable this. Follow the procedure below.

 

How To Add and Encrypt Password To Post and Pages On Blogger Platform

 

1. Log in to your Blogger Dashboard and navigate down to the “Pages” or “Posts” but i will be using post for example on this one.

2. Visit the Post Section and Click on New Post and before writing the post Add the following JavaScript below.

<SCRIPT LANGUAGE=”JavaScript”>
var password = ‘clickedwap’
password=prompt(‘This is password protected page, please enter password to continue.’,”);
if (password != ‘clickedwap’) {
location.href=’http://www.error_page_url.com’;
}
</SCRIPT>

Note: Remember to change “CLICKEDWAP” to your desired password. Also change http://www.error_page_url.com to the URL you want it to redirect onto when a user enters a wrong password.

3. Now Save/Publish and Open the Post After writing, you will see a prompt asking you to enter your password.

DEMO PAGE: http://gallerygist.blogspot.com/2018/04/testing-for-post.html

POST PASSWORD: clickedwap

 

If there is any difficulty. Comment below for instant solution.



LEAVE A REPLY

Please enter your comment!
Please enter your name here