Howto password protect directory in cpanel based hosting


How to add password protection to a folder inside my blog?

That question came from a hostingformula.net reader and I try to answer it with example.

I use cpanel based hosting where facility for password protect directory provided under ‘Security’ section.

Target :

I’ll create new folder called ‘magic‘ that protected by username and password.

Open cpanel and find security area, find password protected directory and clic the icon.

cpanel protect directory 1 Howto password protect directory in cpanel based hosting

Pick a directory to open. I choose hostingformula.net

click Go.

cpanel protect directory 2 Howto password protect directory in cpanel based hosting

Menu will provide list of folder that available to choose.

I choose ‘public_html

cpanel protect directory 3 Howto password protect directory in cpanel based hosting

Beware

1. Make sure folder that you want to protect exist ( I’ve create a folder named ‘magic’ inside public_html)

cpanel protect directory 6 Howto password protect directory in cpanel based hosting

2. You already browse to ‘magic’  directory.

If you still in public_html (see the address of your cpanel) just add :

/magic

as you see from the picture below.

cpanel protect directory 7 Howto password protect directory in cpanel based hosting

Now you can check ‘password protect this directory’ check box.

Enter name (you can enter anything, I enter same name as folder I’ve create before) and click save.

cpanel protect directory 4 Howto password protect directory in cpanel based hosting

Set permissions for /home/hosting/public_html/magic

message will appear.

Create user that allowed to access ‘magic’ folder . Click ‘Add/modify authorized user’ button when you’re done.

cpanel protect directory 5 Howto password protect directory in cpanel based hosting

Finish.

You can repeat the process to add other user. I’ve create other user and pass for you if you want to try the effect.

User : testing

Password : testing123456

Address :

http://hostingformula.net/magic

See you in next post!

Related Reading:

GPS Made Easy (GPS Made Easy: Using Global Positioning Systems in the Outdoors)GPS Made Easy (GPS Made Easy: Using Global Positioning Systems in the Outdoors)Keeping up with the newest technology, GPS Made Easy, 5th Edition, includes navigation in difficult weather (such as a whiteout), integrating hand-hel... Read More >
GPS Quick Course, Systems, Technology and OperationGPS Quick Course, Systems, Technology and OperationThis book explains satellite position location technology and how the GPS system has evolved. You will learn the functional parts of GPS systems and h... Read More >
Introduction to GPS: The Global Positioning System, Second EditionIntroduction to GPS: The Global Positioning System, Second EditionThis thoroughly revised edition of the Artech House bestseller, Introduction to GPS: The Global Position System offers professionals and students an u... Read More >
The Global Positioning System & Inertial NavigationThe Global Positioning System & Inertial NavigationWith GPS and INS hardware becoming ever smaller and less expensive, innovative opportunities for commercial navigation systems are everywhereNand cont... Read More >
Gps Made Easy: Using Global Positioning Systems in the OutdoorsGps Made Easy: Using Global Positioning Systems in the OutdoorsThis continues to be the best-selling instructional for the wildly popular consumer GPS technology because it is also the most up-to-date of any tex... Read More >

Thanks for reading, if you think this post help you please consider to buy me a beer

  • Share/Bookmark
Step By Step

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Leave Comment

(required)

(required)