Re: Protecting Javascript via PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Even if u make ur JS files dynamicaly made on the fly, browsers cach
that dynamic JS.
To be specific you'd get a file like script.php?parameter=pValue as a
.php file that is cached after being rendered. So ur JS will be there
stored in the cached static .php file ( a file with PHP extension
including only ur rendered JS code in windows
internet_temporary_folder ) !

The best way to do make ur code hard to get is obfuscating ur JS code.
I think so !

Try one of these or google more than me :) keywords = obfuscating javascript 
-http://www.w3compiler.com/
-http://www.semdesigns.com/Products/Obfuscators/index.html?Home=SourceObfuscators




On Thu, 28 Oct 2004 19:01:55 +0200, Ryan A <ryan@xxxxxxxxxxxx> wrote:
> Hey!
> Thanks dude, that DOES make it harder for ther person to get to your JS
> code....I have seen various solutions like this like code-secure from
> securecents.com (although I think the article you mentioned is better)
> 
> I was thinking more of a php solution, passing some variables and looking at
> the calling scripts etc....this way the .js file does not even get cached in
> the visitors/users machine...
> Just playing around with ideas,...this list is full of _really_ intelligent
> people I was hopeing someone else can build on it and maybe pool some of
> their ideas in on top of mine...
> 
> Thanks,
> Ryan
> 
> 
> > http://scriptasylum.com/tutorials/encdec/encode-decode.html
> > is a good article on wasy to achieve this
> > On Thu, 28 Oct 2004 16:24:24 +0200, Ryan A <ryan@xxxxxxxxxxxx> wrote:
> >
> > > Hey,
> >
> > > I have been searching around the web for a way to "mangle" my
> > javascript
> >
> > > code the way some people do it to HTML/PHP etc so its not so easy to
> > read.
> >
> > >
> >
> > > There is no "sure" way to do it and if a person is REALLY determined to
> > get
> >
> > > to your code...he can, but I would like that person to go through some
> > extra
> >
> > > effort before he gets to it...
> >
> > >
> >
> > > the idea being to have a tag like this:
> >
> > > <script language = "JavaScript 1.2"
> >
> > > src="javascript.php?some_parameter_here">
> >
> > >
> >
> > > if the correct $some_parameter_here (or parameters) is passed then to
> > output
> >
> > > the code....if it can output the code only to another php script too it
> >
> > > would be great...
> >
> > >
> >
> > > I have also been reading the doc at shiflett.org as the present question
> > of
> 
> --
> 
> 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
M.Saleh.E.G
97150-4779817

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux