PDA

View Full Version : Hiding my HTML source code



harddisk160
10 Jan 2011, 01:00 PM
Hello.

I'm thinking to create a website. Before that, I want to know how to hide my source code? Is it possible? Thanks.

alvo
10 Jan 2011, 04:59 PM
The source code is what the browser uses to render the page on the users screen. If it's not available, the browser can't display anything. Is it possible, yes, sort of, but ... You could encrypt all the code for the page by inserting HTML entities for each character. It would i***ate you page sizes and load times considerably and you'd never be able to edit the page since you couldn't read it. It would also take a tremendous amount of time to encode it and be really difficult to figure out what is wrong if you have a typo or other error on the page.

The big question, is why would you want to? I can't think of anything so unique in coding that would warrant the need to hide it. If you're afraid of someone stealing your code, it's just code. Stealing your design? You don't need code for that.