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