Private LibraryLEARN & UNLOCKdj-postgres2
YOUR NEXT SMALL LESSON

Learn how private
files stay private.

Read the short lesson and answer two questions to open your guide.

01 / THE LESSON

Two rules to remember

1

Store it somewhere private.

Private documents belong outside the public web directory. Knowing a filename should never make the file available.

2

Check every request.

The server must check access every time a document is requested. Hiding a link is not enough: someone could copy it.

In this example, completing the quiz grants access. A real site could instead require an approved membership or a paid order.
02 / CHECK YOUR UNDERSTANDING

Unlock your guide

03 / YOUR PRIVATE DOCUMENT

Your private-media field guide

A one-page PDF with the example's private-media checklist.

Locked until you complete the lesson

Want to test the protection? Try the document link before unlocking, or open it in a private browser window. The server will check that browser's access.