Solved

hide file path

Posted on 2009-04-06
3
407 Views
Last Modified: 2012-06-27
how do i hide file path of my js file? i dunwan people know where i located it and the file name.

<script type="text/javascript" src="testingt.js"></script>
0
Comment
Question by:kengkit
  • 2
3 Comments
 
LVL 11

Expert Comment

by:flipz
ID: 24079723
Shouldn't have to worry - browsers shouldn't be able to download a .js file anyway - even if you type in direct path.
0
 
LVL 20

Expert Comment

by:Gawai
ID: 24081152
@flipz
>>browsers shouldn't be able to download a .js file anyway
how come its true ? it can be downloaded ofcourse
0
 
LVL 20

Accepted Solution

by:
Gawai earned 20 total points
ID: 24081193
Hi kengkit

u can hide it by encoding
http://scriptasylum.com/tutorials/encdec/encode-decode.html

<script language="javascript" src="file.js">
</script>

will be converted to

%297Gwgvmtx%2964perkyeki%297H%2966nezewgvmtx%2966%2964wvg%297H%2966jmpi2nw%2966%297I%294H%294E%297G3wgvmtx%297I%294H%294E4
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now