[Xitami] hiding *.js code

Reply-To xitami@lists.xitami.org
Thu, 16 Aug 2001 17:30:04 -0500


--============_-1214121486==_ma============
Content-Type: text/plain; charset="iso-8859-1" ; format="flowed"
Content-Transfer-Encoding: quoted-printable

--

on 8/15/01 8:51 PM, Dan Fisher at djf@esite-me.net wrote:

>
>
>  Samuel Trygger wrote:
>>
>>  At 20:26 2001-08-15 +0200, Toernooi Assistent wrote:
>>
>>>  Would there be a way to hide *.js subroutines from simple browsing?
>>
>>  Nope. You can't. Not easily anyway. You could use some encryption
>>  routine (such as those used by most VBScript virus creators) to
>>  obfuscate your scripts and then a different routine to unobf=FAscate the
>>  code, once someone calls a  function in your script.
>
>  Do you want the browser not to see it or the user not to be able to
>  steal it?
>  If the later, try:
>
>  <script language=3D"JavaScript" src=3D"script.js" </script>
>
>  Doing a View Page does not show the *.js file..
>
>  dan
>
-- 

Also, you can do this:

<script language=3D"JavaScript" type=3D"text/javascript">
<!-- Hide script from older browsers

// end hiding contents -->
</script>

or, for PDA/Phone browsing:

<SMALLSCREENIGNORE></SMALLSCREENIGNORE>

As for people hacking your code, server-side helps, but if they want it
they will get it.  You'll just have to be creative and consider the hacking
flattery, because your code is so desirable.


Cheers,

WRPalaia

--
--============_-1214121486==_ma============
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type=3D"text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Xitami] hiding *.js code</title></head><body>
<div><font face=3D"Verdana" size=3D"-1" color=3D"#0000FF">--</font></div>
<div><font face=3D"Verdana" size=3D"-1" color=3D"#0000FF"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1" color=3D"#0000FF">on 8/15/01 8:51
PM, Dan Fisher at djf@esite-me.net wrote:<br>
<br>
&gt;<br>
&gt;<br>
&gt; Samuel Trygger wrote:<br>
&gt;&gt;<br>
&gt;&gt; At 20:26 2001-08-15 +0200, Toernooi Assistent wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; Would there be a way to hide *.js subroutines from simple
browsing?<br>
&gt;&gt;<br>
&gt;&gt; Nope. You can't. Not easily anyway. You could use some
encryption<br>
&gt;&gt; routine (such as those used by most VBScript virus creators)
to<br>
&gt;&gt; obfuscate your scripts and then a different routine to
unobf=FAscate the<br>
&gt;&gt; code, once someone calls a&nbsp; function in your script.<br>
&gt;<br>
&gt; Do you want the browser not to see it or the user not to be able
to<br>
&gt; steal it?<br>
&gt; If the later, try:<br>
&gt;<br>
&gt; &lt;script language=3D&quot;JavaScript&quot; src=3D&quot;script.js&quot=
;
&lt;/script&gt;<br>
&gt;<br>
&gt; Doing a View Page does not show the *.js file..<br>
&gt;<br>
&gt; dan</font></div>
<div><font face=3D"Verdana" size=3D"-1" color=3D"#0000FF">&gt;</font></div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">Also, you can do
this:</font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">&lt;script
language=3D&quot;JavaScript&quot;
type=3D&quot;text/javascript&quot;&gt;<br>
&lt;!-- Hide script from older browsers</font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">// end hiding contents --&gt;<br>
&lt;/script&gt;</font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">or, for PDA/Phone
browsing:</font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana"
size=3D"-1">&lt;SMALLSCREENIGNORE&gt;&lt;/SMALLSCREENIGNORE&gt;</font></div
>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">As for people hacking your code,
server-side helps, but if they want it</font></div>
<div><font face=3D"Verdana" size=3D"-1">they will get it.&nbsp; You'll
just have to be creative and consider the hacking</font></div>
<div><font face=3D"Verdana" size=3D"-1">flattery, because your code is so
desirable.</font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">Cheers,</font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">WRPalaia</font></div>
<div><font face=3D"Verdana" size=3D"-1"><br></font></div>
<div><font face=3D"Verdana" size=3D"-1">--</font></div>
</body>
</html>
--============_-1214121486==_ma============--