• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

password protect a page

R

richa

Guest
Can someone tell me how to password protect a few pages, so i can have a partial members site, so nonmembers cannot view these pages.I have seen several software programs through google,but most want to charge you and I am not sure which to use. I am using sitebuilder 4.5 and inmotion hosting. Inmotion said i can only password protect folders not pages and that i would need a cms system??? Also I am new to site building,any help would be thankful.
 
Did you ever receive an answer to this question? I'm faced with the same challenge and would love to hear how you proceeded.
 
Hi,

Its not possible. Not with the Linux version anyway. You need to sort that yourself some other way as far as I am aware.

Regards
 
I'm like you, a complete novice on this but I did find an easy PHP script on the internet. It worked for me, but don't ask me how safe it is.

So, use the script mode and add this for the text:

$user = $_SERVER['PHP_AUTH_USER'];
$pass = $_SERVER['PHP_AUTH_PW'];
if ($user != 'username' or $pass != 'password'){
header('WWW-Authenticate: Basic realm="Some text"');
header('HTTP/1.0 401 Unauthorised');
die('UNAUTHORISED ACCESS');
}



You can in this script change the 'username' and 'password' to what you want the username and password to be. You can also change the ''UNAUTHORISED ACCESS' to say whatever you wish.

Good luck!
 
I tried your script, but it didn't work. How exactly did you use it? Thx.
 
Back
Top