• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Password Protect A Directory

J

JustinK101

Guest
How do I password protect a directory with 7.6? I am looking at permission on folders, but looks a little confusing. I want to make the folder resistrcited, so you HAVE to put in a password, using the standard http password request.

I need to be able to grab the username via the php call:

if(isset($_SERVER['PHP_AUTH_USER']))
{
$current_user = $_SERVER['PHP_AUTH_USER'];
}

Thanks guys!
 
Back
Top