Hiding HTML Code from being viewed by End Users.Possible??

I was going through the Google Group - Professional PHP Developers . Thought it would be nice to share them with you all.
The question raised was :

i want to know to how i can hide my html script to proptect my
source code ....
I dont want my html page shd show the source script code...
as if u try in gmail .. to view source code .. it doesn't open ..
And a reply cleared this quite well.

Below ideas might possibly be irrelevant according to how you answer the following question:
Why do you want to hide your source code?
-
Another analogy to what you suggest is for a mason to build a brick wall but insist that it be painted over so no one can see the
order in which they have lain the bricks. It makes the wall uglier so that no one might copy them.
It also devalues the work that went into the wall and no one will ever know what a great mason they are.

Further, gmail does indeed reveal code when you view source. At least in FireFox. I just looked.

There are obfuscators of source but there is not much worth hiding in HTML.
Unless you think you have invented a patentable technology using HTML there isn't any point to hiding it. Is there?
It is not a programming language so you can't really invent methods only arrangements.
It is a display language and becoming a purely content containing language, soon to be replaced completely by XML.

Additionally firefox has an option for view 'rendered source'.
Probably all browsers but definitely FireFox and IE read your code and re-write it before displaying it.
So if I view the rendered source, I would see all your obfuscated code un-obfuscated.
'Rendered source' will show anything written to the document with javascript or otherwise. (in IE it is transcribed into 'MSHTML'.
Which is what many wysiwyg editors use to modify a page when edited within the browser itself.)

If you are lucky enough to have someone 'steal' your html... consider it a compliment and boasting rights for your excellence.

If you code sites for clients it would be considered (I think) unprofessional to obfuscate code as you have written it for them.
They should own it unless you have a specific contract that specifies they have 'licensed or subscribed' usages.
For html it would be bad practise to license or subscript out as they could recieve it in a full clean, exposed form from another
html writer.
And if you write code that is worth stealing... why not share it and offer free use with a linkback to you?

Mainly only amateurs will copy and paste an entire page of code anyway.
It is unlikely they will derive commercial benefit from your ideas directly.

Hope you are quite clear now.

Posted byShyam at 7:15 AM  

2 comments:

Anonymous said... Saturday, March 30, 2013  

Whether or not you can use these Nevertheless it is a very intimidating task to Induce a alternative out of these. [url=http://www.tasty-onlinecasino.co.uk/]online casino[/url] online casino games Taking at beloved meter we are providing top casinos sites those can be Best for you to recreate top secret plan and too you can spiel their play and play which would be prissy for you. http://www.onlinecasinoburger.co.uk/

Anonymous said... Friday, April 19, 2013  

You qualify for $4,500 in federal loans, causing a shorfall involving $2,000 [url=http://www.fasttemporarycarinsurance.co.uk/]http://www.fasttemporarycarinsurance.co.uk/[/url] http://www.fasttemporarycarinsurance.co.uk/ In cases like this Payday loans regarding bad credit to the regular are far nicer than other people http://www.fasttemporarycarinsurance.co.uk/

Post a Comment