ComputerIkon.com Posted February 10, 2011 Share Posted February 10, 2011 I have this PHP login script where the user logs in and is able to view protected webpages. When I create a separate folder at mydomain.net/videos that I want to password protect so that only a registered user who are logged in can view the video content within that folder. But I know you could just go directly to mydomain.net/videos and go around the login script and access the files without being logged in. Suggestion or help is much appreciated The script that I am using is from http://php-login-script.com Quote Link to comment https://forums.phpfreaks.com/topic/227270-password-protect-a-filefolder/ Share on other sites More sharing options...
The Eagle Posted February 10, 2011 Share Posted February 10, 2011 After further reading into the website they actually have a function where you can just add a piece of code to say any page and it will require them to log in or be already logged in. <?php include 'dbc.php'; page_protect(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/227270-password-protect-a-filefolder/#findComment-1172378 Share on other sites More sharing options...
ComputerIkon.com Posted February 10, 2011 Author Share Posted February 10, 2011 Thanks for the reply The Eagle Quote Link to comment https://forums.phpfreaks.com/topic/227270-password-protect-a-filefolder/#findComment-1172386 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.