Skip to content
Sample Page Titled: authorize.php
- Include the file pictured below in the same folder as the page you are trying to protect, like any page that allows someone to enter or delete data. You can download this file at the end of this blog entry.
Script Included on Protected Page
- You must include this script above all of the HTML on the page you are protecting.
- You need to also name the file with a .php extension so the web server knows to process the php in the document. For example a main page titled index.html would have to be switched to index.php after the require_once script was included in the header of the file.
- The image below shows you where the <?php script is located on the protected page: