|
|
|
Expert:
|
theDude
|
|
Date:
|
Aug 30, 2006
|
|
Time:
|
19:27
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
Thanks theDude,
You got the right things but I want to do in scripting the encryption of these files.
Regards,
Sarbjit
|
|
Expert:
|
multani.sarbjit
|
|
Date:
|
Aug 31, 2006
|
|
Time:
|
06:19
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
Maybe the JSLinker of the Dojo project might be the thing you are looking for: it allows you to transfowm your code into an AST which is faster to execute and also obfuscates the code you've written. For CSS I have no idea at all because a good DOM-Inspector can be used to analyze the properties...
http://snyke.net/blog/2006/09/02/js-link...
Regards,
Snyke
|
|
Expert:
|
Snyke
|
|
Date:
|
Sep 03, 2006
|
|
Time:
|
15:23
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
Hi All,
I was looking at your comments and have the same problem. I use ASP programming and have my JS files in a seperate folder to hide them but when I look at the source code in the browser it obviously displays the path to this folder in my <Script> tag. If I select and copy this path from the displayed source file and paste it into the address bar accordingly it allows me to download the file, so my question would be, is there anyway to password protect this folder to prevent download?
Let it be said also that my JS is very basic, (image over buttons) so it is not important but I would like to find a way to hide these files incase I ever have to deal with sensitive data using JS. I can do this with VB anyway, (run on server), but I would like to prevent as much server lag as possible.
Thanks for your time people.
regards,
James.
|
|
Expert:
|
webkungfu
|
|
Date:
|
Jun 22, 2008
|
|
Time:
|
06:04
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
James,
Don't know if you have already thought about it this way: You can indeed password protect the folder with you script files, to prevent download, but they wouldn't be much good then, since the browser wouldn't be able to see them either. Anything that runs client-side will have to be visible to the client (browser, user, whatever). You can make things difficult for the user by only serving the file if the referer is your web page, but anyone who would have an interest in seeing your secret js-file with sensitive data, will also be clever enough to overcome any kind of obstacle you may present.
If you want to hide script or data, the answer is to run it on the server and never serve it to any client.
Hope it makes sense!
Jakob
|
|
Expert:
|
jgivoni
|
|
Date:
|
Jul 07, 2008
|
|
Time:
|
11:08
|
|
|
|
Votes: Good (0) | Bad (0) Login to rate this answer
|
|
|
|
|
|
|
This question has been answered, and points have been rewarded to the following experts:
You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for this question by clicking on the "Answer Summaries" Tab.
|
|