Recent

Author Topic: CGI | Download a PDF File  (Read 415 times)

cpalx

  • Hero Member
  • *****
  • Posts: 619
CGI | Download a PDF File
« on: September 21, 2019, 04:43:56 pm »
Hello,

i need to download PDFs Files, but that files will be in a secure place. how could i download that files?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8108
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: CGI | Download a PDF File
« Reply #1 on: September 24, 2019, 10:57:23 pm »
Ask for downloadable link? Including any authorization header or any other required security mechanism, if needed.

dbannon

  • Hero Member
  • *****
  • Posts: 691
    • tomboy-ng, a rewrite of the classic Tomboy
Re: CGI | Download a PDF File
« Reply #2 on: September 25, 2019, 12:53:47 am »
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

cpalx

  • Hero Member
  • *****
  • Posts: 619
Re: CGI | Download a PDF File
« Reply #3 on: September 30, 2019, 03:41:58 am »
I need any mechanisc for security download, i will have a lot of pdf files, but I don't want them to be public

Leledumbo

  • Hero Member
  • *****
  • Posts: 8108
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: CGI | Download a PDF File
« Reply #4 on: October 01, 2019, 12:06:17 am »
I need any mechanisc for security download, i will have a lot of pdf files, but I don't want them to be public
If my hint wasn't clear enough:
https://nordicapis.com/3-common-methods-api-authentication-explained/

Personally, I think with HTTPS an API key in custom header is both easy and safe enough because:
  • you can't sniff HTTPS traffic
  • even if you know the custom header key, as long as you generate the value in a kind of random way and it's long enough (e.g. 256 chars of all printable characters) such that it's nearly impossible to guess until the world ends, attacker won't get it

cpalx

  • Hero Member
  • *****
  • Posts: 619
Re: CGI | Download a PDF File
« Reply #5 on: October 01, 2019, 02:52:14 am »
thanks.