• Post Reply Bookmark Topic Watch Topic
  • New Topic

Direct access to html file

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application,i am not able to give any security to html file.That is,if i copy the path of html file and write it in other browser's address bar,that html file is still available.
Please tell me if there is any way ,through which i can apply some security to html file,so that direct access to it can be prevented.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could write a filter with a mapping of *.html that checks for a login.

Another approach would be to put the HTML pages in a directory under WEB-INF and write a servlet that forwards to the HTML pages.
 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ben
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!