• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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