Vamsi Krishna

Vamsi Krishna

  • 1.4k
  • 199
  • 17k

how to stop browse java script file in browser in asp.net

Nov 23 2016 6:37 AM
Hi
 
How to prevent .js file browsing if i enter .js file name directly in browser url it should not browse  
 
example :http://localhost:56036/Default.aspx
 
Instead of default.aspx i have entered Scripts/jquery-1.8.2.js like below 
 
http://localhost:56036/Scripts/jquery-1.8.2.js 
 
How to stop browse these kind of files
 
Thanks in advance  

Answers (1)