Skip to content

Instantly share code, notes, and snippets.

@eric1234
eric1234 / README.md
Last active January 6, 2025 13:30
Protect page with simple password

Purpose

Unauthorized access to a PHP page prompts the user for a password. Once the password is entered the original page will show.

Features

  • The access is recorded in the session so it only needs to be