Solved

hide file path

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…

687 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