How To Lock and Encrypt Pages And Posts On Blogspot Blog

I recently wrote this tutorial on my blog on how to encrypt your posts in blogger so that some information is kept secret. for example if you want to leave posts that only your good friends can read, then u can give them the passkey/password to decrypt it.

~~~~~~~~~~~~~

If you have a blog in Blogger, you'll realize that it does not have the option to password protect your posts like Wordpress does. However, there is a way around it, thanks to Vincent who uses Javascript to encrypt and decrypt the text.

For wordpress users there are some plugings you need to install to enable you do this, but for those using blogspot you wont need any plugins to do this.

Locking of pages and posts in blogger/blogspot

 PROCEDURES

Log into your blogger dashboard >>select your blog>> click on "New post"

Now after clicking on "New post" a space or box will be provided where you will type in what ever you want to post. 

At the top left corner bar you will see "COMPOSE" And "HTML" click on HTML as shown in the image below..

After clicking on HTML  paste the below code above the your  content/post  and then publish.

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

You can also change the password by changing "dailytips" (which is the password) to your preferred or desired password

Then in the above code where you see http://www.error_page_url.com

Simply change it to your blog's URL
Example www.dailips.com.ng

Meanwhile a tutorial was written by Vincent cheung in 2006, july 18 on how to Encrypt and Decrypt Blog Posts on Blogspot Blog, the tutorial has Been Given Below.

to Achieve this First, you have to edit your blogger template. Go to Layout >> Edit HTML and find </head>. If you can't find it, mark the box "Expand Widget Templates". Then paste this code BEFORE the </head>

user posted image

Next, you need to encrypt your post and put it in your post. Go to this page, insert your desired key (which will act as the password) and also the text that you want to keep hidden. Press the [Encrypt] button and copy the encrypted text in the red/pink box.

Choose a unique_name and paste the text you copied from the pink/red box into PASTE_ENCRYPED_TEXT_HERE. Make sure the unique_name is same for both lines of the code below.

CODE
<a href="javascript:Decrypt_text('unique_name', 'PASTE_ENCRYPED_TEXT_HERE');">Show encrypted text</a>

<div id="unique_name"></div>


Your post will now look like this:
user posted image user posted image user posted image

Tadaaahhh! icon_rolleyes.gif

*ADDED:* Check it out here >> http://encrypted-blogger-post.blogspot.com/

Comments

Popular posts from this blog

How to set Adsense Ads.txt on blogger Blog Root Directory

How to Increase Your Blog Adsense CPC Rate