SocialEngine 4: Password Protecting Build of Site

Andrew - SocialEngine

As webmasters start to create their new social network, many like to prevent people trying to access the new site while its still being built.

Most users will be happy to use the basic security features within SocialEngine by using the maintenance page, but whilst this is good within itself, not everyone is happy with this method and would like to use a more advanced method by passwording their website while creating it.

While using .htaccess it is very easy to password protect a folder or directory. The method is called .htaccess password protection or htaccess authentication and works by uploading two files called .htaccess and .htpasswd in the directory you want to password protect. The htaccess file should contain the following:

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile /path/to/.htpasswd
Require valid-user

You only need to change “/path/to/.htpasswd” with the full path to your .htpasswd.

Next you need to upload the .htpasswd file which contains the username and password to enter the password protected folder. The .htpasswd file should contain:


The above code will allow the user “test” to access the password protected area with the password “test”. The text “dGRkPurkuWmW2″ is a encrypted version of the password. You will need to use a htpasswd generator to create another password.

Each line in the .htpasswd file contains a username and password combination, so feel free to add as many combinations as you like.


Looking for quality SocialEngine Hosting? Look no further than Arvixe Web Hosting

Tags: , , , , , , , | Posted under SocialEngine | RSS 2.0

Author Spotlight

Andrew Cross

Hi, I'm Andrew. A am a 26, ICT Administrator which offers support to company's around the South Wales Area. I have created a few social sites for myself and other company's. So far 2 out of 3 have been successful using the powerful SocialEngine Script. I continue to try and help the community of SocialEngine by giving Support and Technical Help where possible.

Leave a Reply

Your email address will not be published. Required fields are marked *