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).
You can't. You have to give the browser the CSS and JS so that it can parse them. Anything you give to the browser you also give to the user.