hide file path

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>
kengkitAsked:
Who is Participating?
 
GawaiConnect With a Mentor Commented:
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
 
flipzCommented:
Shouldn't have to worry - browsers shouldn't be able to download a .js file anyway - even if you type in direct path.
0
 
GawaiCommented:
@flipz
>>browsers shouldn't be able to download a .js file anyway
how come its true ? it can be downloaded ofcourse
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.