Skip to content

Instantly share code, notes, and snippets.

@jobjects
jobjects / 00 Getting document path from database and obfuscating access URL.md
Last active July 21, 2018 14:03
Example script for PDF Highlighter that gets document path from database and obfuscates document access URL

Getting document path from database and obfuscating access URL

Requirements for this exercise are:

  • Access PDF documents using GUID identifiers.
  • GUIDs are stored in MuSQL database and point to PDF files on accessible via server file system.
  • Users should not be able to get direct URL to PDF file.

The approach used to address the requirements: