PHP password protectLicense

PHP password protect – is a script which you need to protect some page generated with PHP. Password protection for a single page. Visitors are required to enter a password and username to view the page content.

Just include this function into your code, and call it at the top of your page with valid USERNAME and PASSWORD.

Source code for webtoolkit.protect.php