Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

prevent direct access  RSS feed

 
niya nair
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i prevent users from directly accessing my pdf files through url.
while the user is supposed to be logged in before viewing the pdf files.
Thanks in advance for any help.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to tell your Web application server that this URL, or a set of URLs, cannot be accessed without going through authentication.

I know how my Web applications do this, but that's probably not of much use to you, as my Web server is rather home-made. Perhaps someone else will be able to give general advice.

You could help by telling us what your Web application server is.

(Bartender Note: would this be better in, say, the Servlets forum?)
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66186
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"niya vl", please check your private messages for an important message from me.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!