Web Dev

Password Protect your Blogger Website Easily

By  | 

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.

Blogger

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.

<script>
var password = ‘Password-Here
password=prompt(‘Please enter the password to enter this site:’,”);
if (password != ‘Password-Here‘) {
location.href=’Redirect-URL-Here‘}
</script>

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.

 

I dream for a great Future for all. I do business with my ITES brand named TechnoCrews . I regularly blog on www.teronga.com and MizPress plusalso write content for others. Of course as a freelance writer. I love WordPress and I love to give new ideas a life for my clients.

2 Comments

  1. Mable

    September 2, 2012 at 8:15 pm

    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. webpage

    January 18, 2014 at 4:54 am

    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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Read more:
Yahoo launched a browser named “Axis” !

Like Google's Chrome, one of the most powerful web portals in the world Yahoo launched a browser. The interesting fact...

Cox’s Bazar-world’s longest natural sandy sea beach

Cox’s Bazar is a town, a fishing port and district headquarters in Bangladesh. It is known for its wide sandy...

Close