Jump to content

html encryption?


612wharfavenue

Recommended Posts

I'm not sure what you've been reading, but HTML cannot be encrytpted. You can make it slightly challenging for the uninformed to read, but if you're trying to protect your secret recipe, forget it.

Link to comment
Share on other sites

You can obfuscate the HTML code, in order to make it harder for humans to read. However, think about it - the browser itself has to be able to parse the HTML, so it can display the page. So, there's no chance for actual encryption.

Link to comment
Share on other sites

So if you cant encrypt html is there a way to block people from viewing the page source which would safeguard your html?

Link to comment
Share on other sites

Safeguard? Nobody's going to be able to hack your site by accessing your HTML code (unless you, like, write your passwords in it or something :)). Anyway, same concept - the browser has to be able to see your HTML code. What's to stop the user seeing it as well?

Link to comment
Share on other sites

All modern browsers have some form of web console or inspector that lets developers examine the contents of their document as it is rendered in the browser. This last part is important. The inspector does not show you the HTML that the developer writes. It shows an organized hierarchy of logical objects. This means that if the HTML has an error, and the browser fixes it, you see the fixed version, not the original. It also means that if you use JavaScript to add, change, or delete objects, the inspector shows you what the document contains after the changes, not before.These inspectors are built in, and they are getting better, not worse, making it more difficult to obfuscate your HTML.And none of it requires "View Source."If you're going to be a web developer, you have to get used to the idea that all your hard work can be copied by anyone and there's nothing you can do to stop it.When your eyes really open up, you'll realize this is a good thing too, because this is how web developers learn from each other.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...