Freelance Forums

Full Version: Encoding HTML
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I recall seeing a thread in a different forum that HTML codes can be encoded.

Have you tried encoding your HTML code? If so, what software did you used?
Firstly, it's not called encoding. Encoding is when like you encrypt stuff and such. I do web design and hand code everything. I use Dreamweaver 8 for coloring and tabbing.
I think he'd talking about encoding your source code so that people can't steal your designs and making it difficult to view source and copy and paste.

I've heard about it but I've never gone to the trouble of actually implementing it. I always felt it would add overhead to your page size/load times as well.
Oh, in that case I have never done that. However I would agree that it would increase load time and lag your site down.
I've never encoded my code before but A simple think you could do (that would actually speed up your page) is once you have completed the page run it through some software (don't know the name) that removes all whitespace and line breaks, etc making the code extremely hard to read.

They could still copy and paste your code but ti would make it hard to modify.

This is a common practice with JavaScript Libraries.

Go to http://www.mootools.net and download the source code twice, one compressed and one not compresed and look at the two. The compressed will be much smaller and very hard to read.
I have heard of this practice before. In all reality I don't care for it. If someone wants to borrow your code let them. If you don't want them to get your code then write scripts and sell them. It's not like they are stealing your design.
Thanks for all your replies.

How slower will the page load if it is encoded? 1 second or 2 (or more) seconds?
It's probably going to depend on how much info on your page and what kind of stuff you are returning. If there isn't alot of text, then it probably won't have any impact, text rich sites would effect you more. The compression thing that aspnetguy posted is interesting, but not enough of a deterrent imo.
Reference URL's