?
Solved

hide file path

Posted on 2009-04-06
3
Medium Priority
?
453 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 80 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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…
Suggested Courses

777 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