Title: PHP: Password Protect Your pages. Post by: Khushi on January 03, 2007, 12:29:26 AM 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. |