I have a web application that contains hundreds of html, js and image files. These files are located under the root directory:
These folders contain some subfolders.
From a security reason I need to move all these resources under the WEB-INF folder so they will not be directly accessible.
Currently JSP and servlet files are already under the WEB-INF folder.
What is the easiest method for me to safely move all html/js/images folders under the WEB-INF without breaking all links/forwarding to resources in these folders and make sure these resources are not directly accessible?
while web page is loading Images,js and css files are getting downloaded to the browser .so if you restrict or providing the security to those files your web page will load without images,js and CSS. we cannot hide those from the server.