Solved

hide file path

Posted on 2009-04-06
3
447 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 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…

738 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