Step 1

Copy & paste the following line at the beginning of your page (this should go before your doctype declaration).

<?php require('typeprotect.php'); ?>

Step 2

Generate your own SHA1 password ( Replace it with the default $password string.

						// sha1() encrypted password
						// the default is "test"
						$password = 'a94a8fe5ccb19ba61c4c0873d391e987982fbbd3';

Step 3

Don't forget to create a signout link. Copy & paste the following code below.

<a href="typeprotect.php?signout=1">Sign Out</a>