Select Categories Below
Advertisement
Start Your Own Q&A Site
Create your own Q&A site easily, allowing you to quickly grow a new community around any subject matter or generate new organic traffic for your existing website.
Status: Closed Points: 125 Time: 17:17 - Aug 30, 2006
multani.sarbjit
HI , Is there anyway to hide the css and js files of project so that user can't view it in the browser if somehow user came to know the path of these files of project?. In otherwords can we encrypt these files ? Any suggestion please!! Thanks in advance Regards, Sarbjit
Categories:
Add Categories
When adding more than one category, separate them with commas.
theDude
Date:: Aug 30, 2006
Time:: 19:27
Hi Sarbjit, You can't prevent people from downloading the files, but you can encrypt them or obfuscate them if you want it to be difficult for people to see what you've programmed. I don't know any free scripts to do this, but here are a few links to shareware (they have trial periods) that might be what you're looking for. http://www.topshareware.com/Advanced-HTM... http://www.protware.com/default.htm http://www.exefind.com/encrypt-php/ Let me know if that was what you were looking for. theDude
Date:: Aug 31, 2006
Time:: 06:19
Thanks theDude, You got the right things but I want to do in scripting the encryption of these files. Regards, Sarbjit
Snyke
Date:: Sep 03, 2006
Time:: 15:23
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
webkungfu
Date:: Jun 22, 2008
Time:: 06:04
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.
jgivoni
Date:: Jul 07, 2008
Time:: 11:08
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
Question Answered
This question has been closed, 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 a Tutorial in the Tutorial Area.
Answer this Question
New User
Email:
Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address
Registered User
Username:
Password:
Forgot Your Password?
Enter your email address below and we will resend your login information to you.
Login Information Sent
Questions
Hi is there a way to retrieve the loop count in XSLT
how do repair this problem: every times i opened my laptop it will suddenly n...
How i get the hp pavilion dv6-3054tx laptop bottom base assembly as a sparepa...
I don't have AOL browser but privacy scan shows hundreds of files/cookies fro...
wireless keyboard has stopped working
need validation controller for textbox in java
You have 100 characters to use
Rank
Expert
Points
1.
10279
2.
6493
3.
5596
4.
4848
5.
3487
6.
2840
7.
2770
8.
2303
9.
1820
10.
917
Register today to share your knowledge with the community and be recognized and rewarded for your contributions.
Register Here
"Psst, Quomon is a great site. Pass it on." Tell a Friend | Link To Us | Save to Delicious | Digg it
Language Options
English:
Español:
Sponsors
Questions and Answers Software