tinkertron Posted January 3, 2010 Share Posted January 3, 2010 I want to protect my site with a PHP/MySQL. I've search high and low for a simply basic not to fancy PHP/MySQL user and password protection. No need for fancy grapchics and all that crap. What I do need is: A log in screen A admin control panel to add and remove users and a code to add to each page that will be protected and a code to log-out and re-direct users to another page. Your help would be greatly appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/186986-phpmysql-password-protection-website/ Share on other sites More sharing options...
oni-kun Posted January 3, 2010 Share Posted January 3, 2010 You've not asked a specific questions, so I'll have to tell you to look up tutorals (as there are infinite online) for: Sessions / Login system: For your page security Htpassword/Htaccess: to deny unauthenticated users and disallow directory listings How to create an SQL table with users: For your admin/user hierarchy. Forms with PHP/ Sanitizing SQL: For your login form, important. I'm sure there are even hundreds of fully written examples for you, if you just look. Quote Link to comment https://forums.phpfreaks.com/topic/186986-phpmysql-password-protection-website/#findComment-987409 Share on other sites More sharing options...
The Little Guy Posted January 3, 2010 Share Posted January 3, 2010 Here is a basic users login page: http://beta.phpsnips.com/snippet.php?id=4 Quote Link to comment https://forums.phpfreaks.com/topic/186986-phpmysql-password-protection-website/#findComment-987447 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.