0

I would like to let user download a pdf file (hidden location) after they agree a terms and condition. I don't want user download the file directly. (where the pdf file located at e.g. http://www.xxxx.com/download/abc.pdf) or i should place the pdf file to https folder? if so, how to avoid user download it without accept a terms and condition?

Many thanks. SC

stockton
  • 19
  • 6

1 Answers1

0

Change the header content type of a servlet and keep a logic to validate (token or something) inside that servet. You may reffer this post

displaying-pdf-in-jsp

Community
  • 1
  • 1
TRiNE
  • 5,020
  • 1
  • 29
  • 42