Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JSTL & Source Code

Reply
Thread Tools

JSTL & Source Code

 
 
Mike
Guest
Posts: n/a
 
      09-15-2005


JavaScript and CSS programmers have for years, been looking for the
"holy grail", i.e., the ability to hide source code.

Take at look at www.dice.com, do a job search then view source.....
nothing there except JSTL noatation per below:

-------------------------- start -------------------------------------

<!--
* $RCSfile: abbreviated.jsp,v $
* $Author: duket $
* $Date: 2005/06/15 13:36:17 $
-->

<!-- START JSTL_INITIALIZATION -->



<!-- FINISH JSTL_INITIALIZATION -->



------------------------ end -----------------------------------------


Was not aware that a fringe benefit of JSTL was the ability to hide
html source code. How secure is this? Can someone hack it to get the
html source?

I'm one of those Java/JavaScript/CSS programmers that has created
graphics with CSS on Web pages and would like to keep the code
private. I have found a crude way but I like the above better.


Thanks
 
Reply With Quote
 
 
 
 
shakah
Guest
Posts: n/a
 
      09-15-2005
Mike wrote:
> JavaScript and CSS programmers have for years, been looking for the
> "holy grail", i.e., the ability to hide source code.
>
> Take at look at www.dice.com, do a job search then view source.....
> nothing there except JSTL noatation per below:
>
> -------------------------- start -------------------------------------
>
> <!--
> * $RCSfile: abbreviated.jsp,v $
> * $Author: duket $
> * $Date: 2005/06/15 13:36:17 $
> -->
>
> <!-- START JSTL_INITIALIZATION -->
>
>
>
> <!-- FINISH JSTL_INITIALIZATION -->
>
>
>
> ------------------------ end -----------------------------------------
>
>
> Was not aware that a fringe benefit of JSTL was the ability to hide
> html source code. How secure is this? Can someone hack it to get the
> html source?
>
> I'm one of those Java/JavaScript/CSS programmers that has created
> graphics with CSS on Web pages and would like to keep the code
> private. I have found a crude way but I like the above better.
>
>
> Thanks


You might want to scroll down a few lines...

 
Reply With Quote
 
 
 
 
Oliver Wong
Guest
Posts: n/a
 
      09-15-2005

"shakah" <> wrote in message
news: oups.com...
> Mike wrote:
>> JavaScript and CSS programmers have for years, been looking for the
>> "holy grail", i.e., the ability to hide source code.
>>
>> Take at look at www.dice.com, do a job search then view source.....
>> nothing there except JSTL noatation per below:
>>
>> -------------------------- start -------------------------------------
>>
>> <!--
>> * $RCSfile: abbreviated.jsp,v $
>> * $Author: duket $
>> * $Date: 2005/06/15 13:36:17 $
>> -->
>>
>> <!-- START JSTL_INITIALIZATION -->
>>
>>
>>
>> <!-- FINISH JSTL_INITIALIZATION -->
>>
>>
>>
>> ------------------------ end -----------------------------------------
>>
>>
>> Was not aware that a fringe benefit of JSTL was the ability to hide
>> html source code. How secure is this? Can someone hack it to get the
>> html source?
>>
>> I'm one of those Java/JavaScript/CSS programmers that has created
>> graphics with CSS on Web pages and would like to keep the code
>> private. I have found a crude way but I like the above better.
>>
>>
>> Thanks

>
> You might want to scroll down a few lines...


That gave me a good laugh. =D

Incidentally, I am strongly convinced that it is absolutely impossible
to securely hide the HTML source code, even for very weak definitions of
"securely". Why? Because it's trivial to write a "web browser" which
masquerades as (as an arbitrary example) Internet Explorer, but rather than
rendering the HTML data it receives, to simply dump that data into a plain
text file, without executing any Java, JavaScript or CSS it encounters along
the way.

In fact, I believe most distributions of *nix come with a program called
"wget" which does exactly this.

As a text file, disabling right clicking, hiding the menu bars, and
other such traditional tricks will yield no results because the JavaScript
won't even get executed.

When it comes to HTML, if the browser can read it, a human can read it.
More generally, any data that you send to the client's computer can be read
by the client running the computer (it's called "Packet Sniffing").

- Oliver


 
Reply With Quote
 
Chris Smith
Guest
Posts: n/a
 
      09-16-2005
Mike <> wrote:
> JavaScript and CSS programmers have for years, been looking for the
> "holy grail", i.e., the ability to hide source code.


And calling it the "holy grail" is a bit generous. At least the Holy
Grail has some small chance of still existing in one piece. The problem
you mention is just plain impossible to completely solve.

> Was not aware that a fringe benefit of JSTL was the ability to hide
> html source code. How secure is this? Can someone hack it to get the
> html source?


The benefit simply doesn't exist. If the page author did something to
hide the HTML source, then it's entirely unrelated to JSTL. You've been
distracted by a red herring.

As someone else mentioned, if you want to see what's really happening
there, you can just use wget to retrieve the page and examine it in a
hex binary editor or a text editor.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(struts/JSTL) Setting bean property value with jstl choose compoundresults DaFoot Java 1 10-23-2008 12:42 PM
Panel with vivible=false in source code / large source Jens-Oliver Murer ASP .Net 1 10-17-2008 01:00 PM
Data Recovery SOURCE CODE ( SOURCE CODES of Professional Data Recovery Software ) Author Tarun Tyagi C Programming 0 12-29-2004 05:10 PM
Data Recovery SOURCE CODE ( SOURCE CODES of Professional Data Recovery Software ) Author Tarun Tyagi Cisco 0 12-29-2004 05:03 PM
Custom JSTL that accepts JSTL expression Robert Mark Bram Java 0 12-15-2004 12:26 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57