Protecting your blogger or wordpress blogs from spammers, clickers and other frauds have always been a major key point in any website designer life. If you are a blogger you will try to make your website safe from people you do not want to enter in your website or you do not want anyone to comment on your website, well I simply mean stopping unauthorized access to your 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 or you can add it to specific post or page.3. Now just press Save Template and refresh your blog to see the password asking popup.<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>
But this trick can be easily seen by tech guys as they can see the password entered in the source code. Any other viamedia.
ReplyDeleteRegards
http://www.indian-share-tips.com/
Nice Password Protector script
ReplyDeleteYou certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material!
ReplyDeletethats nice .................http://www.difftrick.com/
ReplyDeleteI password protected my blog and it works perfectly. However even you can still view the page via smart phone. Is there any way to stop this?
ReplyDelete