I need to block some resources from direct access from browser when a user place the full path of the application resource. So far I have tried this code in web.xml and work