Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 21st, 2008, 6:46 AM   #1
susapra
Newbie
 
Join Date: Sep 2008
Posts: 9
Rep Power: 0 susapra is an unknown quantity at this point
Post how to protect your html code and is it worth it?

Hi,

I stumbled across a product on the net which said that it would protect my html code, stop people viewing it, disable various things in my browser etc. I am a little dubious as I know many ways myself to get around these things and some of the disabling features are pointless half the time, but having said that id like to find out other peoples opinions and views and maybe recommendations.

Is there is any need to try to protect html code using these kinds of software? Does anyone bother and if they do, do they find it successful - or is it a waste of time?

<snip fake signature>

Last edited by Ancient Dragon; Nov 10th, 2008 at 12:50 PM. Reason: snip fake signature
susapra is offline   Reply With Quote
Old Sep 21st, 2008, 7:48 AM   #2
Grich
Professional Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 322
Rep Power: 2 Grich is on a distinguished road
Re: how to protect your html code and is it worth it?

I haven't had many cases were I have had to protect my html code. I don't know why you would want to or how it would work. The only protection from viewing I do is keep the javascript in another file rather than in the html.
__________________
SYNTAX ERROR ...
Grich is offline   Reply With Quote
Old Sep 21st, 2008, 8:32 AM   #3
Freaky Chris
Professional Programmer
 
Freaky Chris's Avatar
 
Join Date: Dec 2007
Location: England
Posts: 413
Rep Power: 1 Freaky Chris is on a distinguished road
Send a message via MSN to Freaky Chris
Re: how to protect your html code and is it worth it?

Quote:
Originally Posted by Grich View Post
I haven't had many cases were I have had to protect my html code. I don't know why you would want to or how it would work. The only protection from viewing I do is keep the javascript in another file rather than in the html.
Ye, thats quite common although offers very little protection for your javascript code anyway.

Chris
__________________
Steven Skiena - Algorithms

,[->+>+<<]>>[-<<+>>]>++++++++[-<++++++++>]<+[-<->]>+<<[[-]+++++++++++++++.[-]>]>>[+++++++++.[-]],
brainf**k -- It's such a pretty language
Freaky Chris is online now   Reply With Quote
Old Sep 21st, 2008, 12:56 PM   #4
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Re: how to protect your html code and is it worth it?

Client-side code (HTML, JavaScript) is hard to protect since the client has to be able to use it; server-side code is protected simply because the client doesn't see it.
__________________
<insert disclaimer here>
<insert shameless plug for Visual Studio here>
Jimbo is offline   Reply With Quote
Old Sep 21st, 2008, 4:16 PM   #5
grimpirate
King of Portal
 
grimpirate's Avatar
 
Join Date: Sep 2005
Posts: 439
Rep Power: 4 grimpirate is on a distinguished road
Send a message via Yahoo to grimpirate
Re: how to protect your html code and is it worth it?

It's very likely that it doesn't make your HTML code unviewable. What it likely does is obfuscate the code. Which means it makes it extremely complicated to read (assuming it's a good obfuscator), but still very viewable. You can't stop a client from viewing a page's source code. All you can hope to do is make the HTML code so ridiculously complicated/convoluted that there's no hope of them ever understanding it.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis
grimpirate is offline   Reply With Quote
Old Sep 21st, 2008, 7:44 PM   #6
MiKuS
Hobbyist Programmer
 
Join Date: Jun 2007
Posts: 136
Rep Power: 2 MiKuS is on a distinguished road
Re: how to protect your html code and is it worth it?

Quote:
Originally Posted by grimpirate View Post
It's very likely that it doesn't make your HTML code unviewable. What it likely does is obfuscate the code. Which means it makes it extremely complicated to read (assuming it's a good obfuscator), but still very viewable. You can't stop a client from viewing a page's source code. All you can hope to do is make the HTML code so ridiculously complicated/convoluted that there's no hope of them ever understanding it.
i might as well add, why would you want to obfuscate html? you could still make javascript walk the DOM nodes and get a good idea of whats happening regaurdless of what you've done.. (bottom line is the browser needs to know whats going on, which means we can get the browser to translate from obfuscated to how it see's it)

i've seen html obfuscation before and it made me laugh, i just used the web developer toolbar to view generated source.
you should be worried about your server side scripts mainly...
MiKuS is offline   Reply With Quote
Old Sep 30th, 2008, 11:04 PM   #7
cdingSpree
C++/C# Developer
 
cdingSpree's Avatar
 
Join Date: Sep 2008
Posts: 261
Rep Power: 1 cdingSpree is on a distinguished road
Re: how to protect your html code and is it worth it?

Quote:
Originally Posted by MiKuS View Post
i might as well add, why would you want to obfuscate html? you could still make javascript walk the DOM nodes and get a good idea of whats happening regaurdless of what you've done.. (bottom line is the browser needs to know whats going on, which means we can get the browser to translate from obfuscated to how it see's it)

i've seen html obfuscation before and it made me laugh, i just used the web developer toolbar to view generated source.
you should be worried about your server side scripts mainly...
I can't agree with you more. So much in fact I have nothing left to say. Darn.
cdingSpree is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC