Password protecting Moodle website

Password protecting Moodle website

by Rod Keat -
Number of replies: 1

After something of a struggle we have now got Moodle running on a remote webhost.

I'm new to PHP, and would appreciate any suggestions on password protecting access to the site while we make modifications to it.  I only mean a single generic username and password, not individual logins.

Average of ratings: -
In reply to Rod Keat

Re: Password protecting Moodle website

by Paul Norrod -
Rod, if you web host has CPanel or other such web admin software for you to admin you site with, there is probably an option in there to "Password Protect Directories."  You make a user or users and assign passwords.  Once you have done that, when someone tries to go to your site, they will be presented with a login panel before they ever get into your Moodle site.  I have included a pic of what the CPanel utility looks like.

You can also do this exact same thing manually by adding entries in your .htaccess file in your Moodle directory.  But, you also have to crypt the password and store it somewhere else - I have never done it manually, so I am not sure of the exact procedures.

Hope this helps!
Attachment SP32-20040218-125407.jpg