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.

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.

 

Similar Posts

2 Comments

  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.