Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How could I use CGI to hide my javascript code?

by jplindstrom (Monsignor)
on Jan 24, 2009 at 15:08 UTC ( #738683=note: print w/replies, xml ) Need Help??


in reply to How could I use CGI to hide my javascript code?

It depends on why you want to do it.

If the code/data is confidential, or sensitive, or a security hole, then you can't. Anyone determined enough can figure out what's served to the browser to execute. Code of this nature needs to be run on the server.

If it's just you not wanting to have your code copied and used by others, the method you describe may be enough to deter enough people.

To make it less valuable to others, you could also obfuscate or minify it. I'm sure you can Google for methods and tools for doing that.

/J

  • Comment on Re: How could I use CGI to hide my javascript code?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://738683]
help
Chatterbox?
[Corion]: My household somewhat becomes a Dell stronghold since I threw out HP for not wanting to scan documents because of an empty ink cartridge ;)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (11)
As of 2017-03-27 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.