|
Title: PHP: Password Protect Your pages. Post by: Khushi on January 02, 2007, 06:59:26 PM A simple PHP implementation which will prevent unwanted access to certain pages.
Simply place your page inside a large php if statement: Code: <?php The code is translated server side, will not reveal your password, and will generate either the page protected, or apply the else, which re-directs to a default page. The default segment could also be written in php and simply echo text to the screen. |