Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Restrict a PDF File  RSS feed

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai


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.

Thanks
Nithish
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Destroy anything that stands in your way. Except this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!