Protecting a Directory With a Password Using vDeck

April 9th, 2009

plesk-tutorial-password-protectSometimes you don’t want everybody to access certain files or areas of your website. While there are several ways to do this, the easiest one is to use a file named “.htaccess”.

Placed in the right directory, the .htaccess file allow you to control access to certain files or directories of your website (among other things). This works on Apache HTTP web servers only though. It is completely different on an IIS server.

This tutorial will show you how to protect a directory using vDeck, a Plesk-like control panel. This will save you the hassle of editing the .htaccess file manually.

For this tutorial, I’ll be using my FatCow control panel so yours might be a little bit different depending on your web host.

plesk-password-protect-1

  1. Log in to the vDeck Control Panel.
  2. In the Web Site section, click on the .htaccess Editor icon :
    plesk-password-protect-2
  3. Click Password Protection :
    plesk-password-protect-3
  4. Select a directory to protect and click the Select button :
    plesk-password-protect-4
  5. The currently selected directory is displayed :
    plesk-password-protect-5
  6. Status of the selected directory is displayed. Password protection is Disabled by default
    plesk-password-protect-6
  7. Enable password protection by first entering an Authorization Realm Name :
    plesk-password-protect-7
    Then click the Enable button
    plesk-password-protect-8
  8. The screen will refresh and the status will change to Enabled and the Enable button will change to a Disable button
    plesk-password-protect-91
  9. The Currently Protected Directories area will now show your directory
    plesk-password-protect-10
  10. Now that the directory is protected, you need to grant users permissions to the directory using the Manage Users section. Simply create user accounts by entering their username and password :
    plesk-password-protect-11
  11. Hit the Add User button and you’re done! Access to the selected directory will now be granted to the user you’ve just created.

At this point, you’ve probably figured out how to remove user access to the protected directory too.

Links

0 responses so far ↓

There are no comments yet...Kick things off by filling out the form below.

Leave a Comment




Webmaster Resources: Web Hosting Blog
© Copyright 2012 - TheWebHostingHero.com
Follow us on Twitter Facebook Subscribe to our RSS Feed