zubrag.com
Free php and cpanel scripts to automate your daily routine

Online Tools :: Password Protect / Encode HTML

HTML Password Protector will protect whole HTML page or only part of it using password.

A lot of HTML protectors available. They can be divided into two main categories:
  • obfuscators, which simply use JavaScript escape/encodeURI functions to obfuscate HTML. Such HTML can be easily decoded using unescape/decodeURI functions
  • login box adder, which adds JavaScript login prompt and do not encode HTML. HTML can be easily seen by disabling JavaScript in browser settings
  • combination of above.

This tool is much more secure. It will encode HTML using your password, and will add password box. Incorrect password will result in incorrectly decoded HTML.

Requirements: JavaScript 1.2 (tested on Firefox 2.0, IE 6.0, Opera 7.51. Can also work on other browsers/versions)

Note: it cannot encode short text due to the nature of encoding. Longer passwords result in better encoding.

Password:

Encrypt and password protect
This is your protected page text. Save this text as HTML file.

Note: we will not be able to recover your password, so please do not contact us about this.


You might be interested in other online tools.

Comments

Encoder
November 26, 2007
Fantastic! I own a website, where few pages have links which I wanted to password protect. So I password protected only those links (replaced links on my page with what your tool produced) and now only users who enter correct password can see them!!! Thank a lot!
Hopeless at HTML
December 3, 2007
I pasted this code at blogger and there will be this "Scripted Window" thingy appearing. I enabled the scripting section already, now, the window doesnt pops out but the password is not there.... Can you help me?
shanemurray [anti-spam] hotmail.co.uk
December 16, 2007
Hi, how do you set multiple passwords?
Thanks shanesentertainment.co.uk
newlife [anti-spam] nlcadopt.org
January 8, 2008
Hi, I added the password HTML code and it worked. So, I tried again, but this time did not enter password, but clicked CANCEL instead, and it brought up my page without the password. Is there something I can do to avoid this or redirect them to a page that says "PLEASE CALL NEW LIFE CHRISTIAN ADOPTIONS or VISIT www.nlcadopt.org FOR CONTACT INFORMATION" if they happen to hit cancel because they don't know the password? I need to keep this site and several others only for our clients who have qualified. Thanks for your time and all your help!
pastfinder1 [anti-spam] yahoo.com
January 11, 2008
I need to protect my download pages. They are html pages (not php) What I really would find useful would be a download link and or password that would expire after say 2 or 3 attempts per computer/customer. Thanks for the script on these pages.
stu
February 8, 2008
this script does not work!! you could make something that produces a better result with very little knowledge of javascript! u could try
function password() {
p=prompt("Enter Password","");
if(p=="your password here") {
document.write("your page here");
}
else {
document.write("Error message here");
}
February 8, 2008
stu, your code does not protect page. It just adds login page. "View source" will reveal page contents.
This tool would encode page contents, unless you provide very short text (about 100 characters) or very short password (like 1 to 3 chars only). The note at the top states it clearly. Try pasting your function into text box and enter some 4-5 chars password, like abc12. Can you decipher your function from result?
Rjtmr [anti-spam] aol.col
February 25, 2008
I am working with a host company that provides password protection. Right now when I password protect, my images are the only thing that are protected. Upon entering the correct user/password only the directory of images is available. I don't understand why the actual "html" page doesn't show. What script do I need to put into those "html" pages in order for complete protection to occur? Please help, I'm about to pull what hair I have left out!!!
February 26, 2008
Dominic
I'm trying to get this script [the java/html one] to be validated at W3C site with no luck. Do you know if it can validate? [As it cold well be me doing something wrong] Thanks.
March 5, 2008
how do you get his to work on free webs please someone?
cherian03 [anti-spam] hotmail.com
April 22, 2008
While changing my freewebs passoword I left the new password box empty and pressed enter. Now I've a "null" password but can't open my site? Any help available?
ayula700 [anti-spam] yahoo.com
April 30, 2008
This is very good. so i get to protect my page from unauthorized people
May 4, 2008
Hi, I added the password HTML code and it worked. So, I tried again, but this time did not enter password, but clicked CANCEL instead, and it brought up my page without the password.

Me too

Add Comment

E-mail or Name: Not required. Email will be protected from spammers

Comment: Please do not post unrelated comments

Anti-spam: Please enter (aa89df14) into the box