Jump to content

password protection and MySQL


brittny85

Recommended Posts

I'm working on a website that I have set up a membership system for.  Right now all of my membership system is set up in PHP & MySQL and works beautifully.  However, I'm working on setting up a new directory which is going to contain documents that aren't .php (they'll mostly be .txt, .doc etc.).  I only want system admins be able to get to this directory, but I can't verify logins the same way I have up until now.  Is there a way that I can make it so that if someone is logged in as an admin they can have access to this directory, but they can't access it otherwise?  I found some things about .htaccess and .htpasswd but I couldn't figure out if I could make that work with the system I had without having to resort to having multiple passwords to get to this part of the site.

Thanks!
-Brittny
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.