Generally applications provides links for downloading PDF files, if we share that with anyone can also download that file. But in our application, we ned to restrict the external users from downloading the file.What we need is users registerd users can download that file. How to restrict that PDF file for external users. Tell me the Solution.
The easiest way to implement some protection would be to use servlet authentication, which would require a username/password to be entered. That is defined in the servlet specification, so it is available in all servlet engines.