Jump to content

PHP/MySQL password protection website.


tinkertron

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.