Hi all,
I want to restrict users directly accessing the html and pdf files(as URL) from my application server. When an user requests for this content, it should ask for login credentials. Please share your ideas for this.
My application has LoginFilter and so I added <url-pattern>*.pdf</url-pattern> in the web.xml. But still the pdf and html files are accessible without logging in.