Question: In web page designing i am using css files and js files and these css files and javascript files are called in jsp page as follows:

```
   <script type="text/javascript" src="datepick.js"></script>  
  <link rel="stylesheet" type="text/css" href="datepick.css" />

```

If somebody views page source then he can know `css files` as well as `js files`, but how can i prevent it?

in index.jsp

```
 <html>
  <head>
    <script type="text/javascript" src="datepick.js"/>
   <link rel="stylesheet" type="text/css" href="datepick.css"/>
  </head>
  <body>
  ..............
  .............. 
  </body>
 </html>

```

If somebody views page source then immediately he can view `datepick.css` and `datepick.js` , which i do n't want. How can i prevent him from viewing these css and javascript files?

Answer: 
You cannot **hide** CSS or JS as the are client-side scripts. The best you can do is to [obfuscate your JavaScript](https://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript) and [compress your CSS](https://www.google.com/search?q=compress%20css).
Short Answer: **NO**.  

Whatever tricks may you used to hide your css and js, users can able to track it easily. Because there are lot of Developer tools available in the market. Better leave this idea for hiding your files...