Password Protect your Blogger Website Easily

Protect your blogger website from spammers, fraudulent clickers and other types of fraud have always been a major issue for almost every website designer. As a blogger, you would definitely do all the necessary things to make your website safe from intruders.Also, you do not want intruders commenting on your website. To put it simply, you want to stop all unwanted access to your website.


In today’s article,  we are going to show you how  to add  a password easily  to your blogger blog. The password solution occurs when a person comes to your website address (s) and is greeted with a password prompt dialog, where (s)he has to enter the password preloaded there by you.  If (s)he fails to enter the password then (s)he will be redirected to your desired website.

1. Go to Blogger > Template > Edit HTML

2. Now press Ctrl + F and search for the </body> tag and add below code above it.

var password = ‘Password-Here
password=prompt(‘Please enter the password to enter this site:’,”);
if (password != ‘Password-Here‘) {

3. Now just press Save Template and refresh your blog to see the password asking popup.

Customizations :

You can change the password according to your wish, however, just change the letters in red color to your password. You can add any URL to which the visitor will be redirected if (s)he enters the wrong password or cancel to add any password, just change the Blue line in the above code with your URL.


Recent Articles

No one ever told you about these 20 Kitchen Tips And Tricks !!!!

there are 20 kitchen tips that  you never heard of which will help you to clean your pans and pots, to maintain your kitchen...

You should eat this 7 foods on a regular basis to get an attractive figure!

If you are interested to make you attractive to others you have to follow some rules. At first you have to control your food...

love your spider plants

Spider Plants or Airplane Plants produce arched green and pale yellow stems that extend to be 12-18 inches long. When less than a year...

You must need these home remedies for healthy long hair.

Long hair is the crowning glory of our looks, both literally and figuratively. Long, gorgeous, and healthy tresses are every girl’s dream. Maintaining long and...

How to cure your Joint pain In A day!

How to cure joint pain Joint pain is one of a common issue among the people, joints are the parts of your body where your...

Related Stories


  1. It’s a shame you don’t have a donate button! I’d definitely donate to this brilliant blog! I suppose for now i’ll settle
    for bookmarking and adding your RSS feed to my Google account.
    I look forward to fresh updates and will share this website with
    my Facebook group. Chat soon!

  2. Colors aoso contribute to total beauty of your garden.
    Theey may also thump to get attention, which might mean theey want
    outt of the cage to play and be with the family. s : This
    is the scent your pup will leave behind.

Comments are closed.

Stay on op - Ge the daily news in your inbox