How to Password Protect Directories in cPanel

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • In this video we will show you how to password protect a directory within the cPanel.
    Protecting the entire site is sometimes done if someone wants to hide the site from the public until they are finished building it.
    Protecting specific subfolders is sometimes done for development purposes and others just to allow specific people to have access to that part of the site.
    This is not meant to replace a membership style site, which is much more complex. This is just for access to a specific area. Think of it like a locked closet in the office where you keep things you don’t want everyone to access.
    First, log into the cPanel dashboard.
    Next, look for the correct category. Getting to the tool is a bit different depending on which theme you are using.
    If you are using the older X3 theme, then you will want to find the “Security” category and then click on the “Password Protect Directories” icon.
    If you are using the new “Paper Lantern” theme, then locate the “Files” category, which is the top one by default, and click the “Directory Privacy” icon.
    In either case, a popup will appear asking you which folder level to enter the tool from.
    For the x theme, select Web Root and then click on “Up One Level” to get to the home directory.
    The “Paper Lantern” theme already has a “Home Directory” option, so go ahead and click that.
    You are taken to the protection tool where you can select any folder you want to password protect.
    Now you get to select the folder you want to protect.
    If you want to protect your entire site, you want to password protect the entire public_html folder. Simply click on the folder name to go to the next screen.
    If you want to have a specific subfolder protected, then enter the public_html folder and find the specific folder you want to protect by clicking on the folder image. This takes you to the list of folders underneath for you to choose from.
    You are now on the Password screen.
    First, select the checkbox that says “Password Protect This Directory”. You can use this to toggle the password protection after you finish setting up.
    Next, give the directory a name. This will show in a popup when someone tries to access the area. You could make it say something like “Members Only” or “Private Area”, or anything else you like.
    Now, you need to create at least one user to be able to access the zone. If it is a workgroup, perhaps you want to have a single username and password. This way you can change a single password to lock everyone out for security reasons. This is normal for project work.
    If you have a handful of people you want to give access, such as a small privileged area, then you can assign a user to different people. You would need to go through this for each member, however.
    Once you have created a user and strong password, click on the “Add or Modify the Authorized User” button.
    This will add the new user to the list.
    Now, when you attempt to access the site or that specific area, you will be met with the popup to enter a username and password.
    If it fails, the visitor will get a 401 error page.
    If it works, they will see whatever they are supposed to see.
    For more information, see our full guide - How to Add Password Protection for a Directory Using cPanel -
    www.inmotionho...
    InMotion Hosting was founded in 2001 and provides personal and business web hosting for everyone! For more information about InMotion Hosting and the services we provide see here:
    www.inmotionho...

Комментарии • 25

  • @ultrarusful
    @ultrarusful 4 года назад +2

    Great Video Straight to the POINT!! I LOVE IT!

  • @igustiagung8262
    @igustiagung8262 Год назад

    nice tutorial ,thank you

  • @mashaandbeer1472
    @mashaandbeer1472 6 лет назад +1

    Very good option to protect your directory, thank you

    • @inmotionhosting
      @inmotionhosting  6 лет назад +1

      Thanks for your feedback! Let us know if you have questions or comments.

    • @mashaandbeer1472
      @mashaandbeer1472 6 лет назад +1

      InMotion Hosting
      I just tried and it is worked and you can protect your admin files from attacking

  • @GalenCurrah
    @GalenCurrah 5 лет назад

    Is there anyway in Cpanel to prevent browsers remembering protected folder credentials? Protection proves worthless where browsers automatically log in the next user who comes along. Could you also speak more distinctly?

  • @PostrahEntertainment
    @PostrahEntertainment Год назад

    i know this is a very old video, but in case anyone is reading. is there a way to bypass the necessary strength of "65" for password? i would just like to make a separate members site with no sensitive materials and would like to pass on a password that is readable (a word and not a collections of symbols)

    • @inmotionhosting
      @inmotionhosting  Год назад

      Thanks for the question. Unfortunately, it's not something that can be changed directly in cPanel. However, if you are on a VPS or Dedicated server with root access, then you can access the Password Strength Configuration option in WHM. This can't be done on shared servers as the password strength option is set for all accounts on the server. If you have any further questions or comments, please let us know.

  • @roxorange6022
    @roxorange6022 5 лет назад

    Good video thanks. Can anyone tell me if is it possible in CPanel to give access to a specific file via a link, whilst still security protecting the directory it is in? Like you can for dropbox for example - send a link to someone but they can't access anything else on your dropdox. No password required.

    • @inmotionhosting
      @inmotionhosting  5 лет назад

      The easiest way to do this may be to create a compressed version of the file you want to share, make a hash sum (md5sum is the easiest), and share the URL to both.
      The guides below should prove helpful.
      www.inmotionhosting.com/support/website/file-manager/compressing-uncompressing-files#compress
      www.inmotionhosting.com/support/website/server-security/verify-checksums-ssh

  • @WackyFolf
    @WackyFolf 6 лет назад

    Doesn't work for me. Even tried on a different device where the files weren't cached.

    • @inmotionhosting
      @inmotionhosting  6 лет назад

      Sorry to hear that. You can always contact our Live Support team. They may be able to help you find a solution.

    • @WackyFolf
      @WackyFolf 6 лет назад

      No worries, I found a way I could block every IP but ones that I want to.

    • @inmotionhosting
      @inmotionhosting  6 лет назад

      Go to hear that you have a solution.

  • @itstaffbintangmastriyasa4805
    @itstaffbintangmastriyasa4805 6 лет назад

    hello, what if authentic required doesn't appear?

    • @inmotionhosting
      @inmotionhosting  6 лет назад +1

      I'd guess it wasn't configured correctly or you're visiting a cached webpage. Have you tried checking the website after clearing your browser cache or using a private window?

    • @itstaffbintangmastriyasa4805
      @itstaffbintangmastriyasa4805 6 лет назад

      I think I've followed the tutorial correctly. and I also tried to delete the entire cache. What is wrong?

    • @inmotionhosting
      @inmotionhosting  6 лет назад

      If you are continuing to have problems with this cPanel feature then you may need to speak with our live technical support team (or with your host's technical support if you're not an InMotion Hosting customer). We would need more details on the cPanel configuration in order to determine what's happening. Please contact support to preserve the privacy on your account and to resolve the issue.

    • @itstaffbintangmastriyasa4805
      @itstaffbintangmastriyasa4805 6 лет назад

      okay thank you, now it's working

  • @MrErmirshalqini
    @MrErmirshalqini 4 года назад

    how to change/hide Cpanel URL like WPS hide login URL ?

    • @inmotionhosting
      @inmotionhosting  4 года назад

      Hi. I recommend asking cPanel forums about the best way to do this.

  • @Shiv-ji-Bhagwan
    @Shiv-ji-Bhagwan 6 лет назад

    i am gone to try this method if it work then i will be new subscriber

    • @inmotionhosting
      @inmotionhosting  6 лет назад

      Great. Let us know if you have any difficulties. Thanks for your feedback.