In this tut i will show you how to both create an html encrypting script and will show you the diffrent methods of encryption.
1. The HEX DECIMAL Encryptor. (Effectiveness 9/10)
This encryptor will turn html code like this
<html><body><p> test1 </p></body></html>
This method is my personal favorite.
First, put this in your scripts body
Now insert this to make the text fields, buttons and phisical appearence
<FORM name=code action="" method=post><TABLE cellSpacing=0 cellPadding=0 bgColor=#000000 border=3 align="center"><TBODY><TR> <TD bgColor=#6699CC> <font color="#FFFFFF">HTML Encrypter 1: </font><BR><TEXTAREA name=asciitext rows=10 wrap=virtual cols=69>Type the code to be encrypted here.</textarea></TD></TR><TR> <TD bgColor=#6699CC> <P> <INPUT class=button onclick=encode() type=button value="Encrypt" name=Button2> </P></TD></TR></TBODY></TABLE></FORM></td></tr></table>
This Encryption will turn a code like this
<html><body><p> test1 </p></body></html>
This by far is my least favorite method.
For a already made version, click here
If you wish to make the aplication yourself, here's the code.
now insert this code to help both compilation and phisical appearence
<body bgcolor=white topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onload=initStyleElements()><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td width=100% height="23"></td></tr><tr><td width=100% height=23></td></tr><tr><td width=100%><!-- Compilation Panel --><form method=post name=pad align=center> <table width="62%" border="2" bordercolor="#6699FF"> <tr> <td bgcolor="#6699FF"><font color="#FFFFFF">HTML Encryption 2</font></td> </tr> <tr> <td bgcolor="#6699FF"><textarea rows=11 name=text cols=58 style="background-color:#EBEBEB;width:95%"></textarea> </td> </tr> <tr> <td bgcolor="#6699FF"> <input type=button value=Encrypt name=compileIt onClick=generate() onMouseOver=LightOn(this) onMouseOut=LightOut(this)> </td> </tr> </table> <br> </form><!-- Compilation Panel --></td></tr></table>
Feel free to post or e-mail me your questions or comments
i think the html code can not been pirated easily like php (zend)and if you do that with some script tools,then there would be the problem with your pages.- so if your html is validated with html 4.01 or xhtml that you validat it again after you pirated it.what do you found , i think it can not been validated,can not pass it.i think there is no need to protect the html code,for you why is it?
Sometimes, an author of an html codes may think that after a good amount of time spending and knitting codes together, they feel that the "used time" = "rewards" for themself and don't want other to enjoy the benefits without a sweat.I know I sometimes feel like that. Yeah, I admit it's kind of selfish, but hey, if you want something really bad, you will be willing to work for it.
Also, there are a lot of ways to crack these methods, such as reversing the code... (I mean, add a function to have the page view the plain text instead). http://www.weblockpro.com/home.php?s=&t= sold similar products but I managed to get a copy of their UNENCRYPTED site (wow that person was really good at programming), http://www.hugedomains.com/domain_profile.cfm?d=htmlprotector&e=com use it too!
Although not a bad post, 'encrypting' your HTML is effectively pointless. Obviously, the browser is going to need to be able to process an unencrypted form of the page - so the client-side script needs to be able to decrypt the HTML. Which means that people wanting to 'steal' your markup are going to be able to anyway by looking at the 'decryption' method. Further more, it's more obfuscation than encryption.
<p><script>document.write('Hi');</script></p>Would appear as:<p>Hi</p>When processed with the SHDocVw control.
That's a good point. Encrypting or Obfusicating an HTML site is just inviting people to decrypt it. But I really like how it compresses your HTML.
If you have a spectacular design or you have a competitor that is trying to steel your business encrypting your code is good business practice. Trust me I know this because it happened to a company I worked for alot. They were trying to steal our business so they stole our code and made their websites look like ours. They were cheap immitations that just lead to crappier websites but still the fact was still there that they were stealing our code so we had to find a way to hide the code from them.
There isn't a way to ensure no one is going to be able to rip off the markup of your page. The client obviously has to receive an uncrypted form of it at some stage, so any encryption or form of obsfucation you use is only going to work to a certain exten, and can't be of great security.
Is it just me, or is a source code of a page that looks like this:
%12%34%56%78%90quite obvious? Surely any vaguely determined person can work out what you've done and easily decrypt it?
I'm not really sure why you would want to stop people from getting at you html code. It takes anyone with alittle skill and a screen shot about an hour to reproduce any page on the web. Anyway, it's really only html. I know there are different and more effective ways of encrypting shopping carts.round
Wow!Thank you sooo much for all the comment =). this being my first post, i didn't know what to expect, Thanks guys!!!
hmm...good work but....I hate one thing in this that it makes the whole system slower....
Wow, Thanks great Tut Much cleaner than method I use!
oh man, I need this real bad. My whole entire blog layout and words has been copied twice and my coding has been stolen! Is there that code where when someone right clicks it comes up as the source code but it's hidden and it says something like NO STEALING
As for the tutorial is great stuff, well explained and useful (I suppose).As for the philosophical aspect of this, I think that copying is deeply into the nature of Internet. It?s a solid concept in any kind of arts or communication ways, and I think free distribution is one of the points of Internet?s success. People not only copy, but learn from other?s work. I think it?s not very ethical to publish something that you?ve copied, yes but... not everyone is nice. And no matter how hard you try to hide things because someone will be able to "decrypt" that and in my opinion that?s not necessary bad.I don?t think that is a problem... if you are good enough to be copied you will always be one step forward, so people will appreciate your work. And if you don?t want to deal with the risk of being copy-pasted, well, I supposed it?s better to dedicate to a job that can not be copied, like a mechanic.