Basic PHP authentication to protect page

A simple way to protect a page using php authentication. By no means is this the best and most protected way. But it is great for a quick and simple protect.

Zip contains the quick video and demo project.

https://cincyplanet.com/blocs/passwordprotect.zip

Edit: Please note, if you try to open this in Blocs preview you will only get the white unauthorized screen since it uses php which is a server side language.