Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Restricting Access to Content

 
reseller guidewebsite managementwebsites and domainsdomainslinux

Watch the video tutorial

If you want to limit public access to specific areas of your website,
you can secure them with a password using the “Protected Directories”
feature. It allows you to designate certain directories of your website
as “password protected”. Anyone accessing such a directory or any
directories and files inside it will be presented with a challenge, and
will need to provide a correct username and password to view the
protected content.

image 78404

To protect a directory with a password, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.

  2. Click Add Protected Directory.

  3. Type in the path to the directory you want to protect (relative to
    the domain’s document root directory) and, optionally, a title that
    will be displayed to visitors.

    Note: In Plesk for Linux, the specified directory will be created if it
    does not exist. In Plesk for Windows, you can only secure an
    existing directory.

  4. Click OK.

If you decide to change the directory’s title, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then click
    Directory Settings.
  3. Type in the new directory title, and click OK.

Before anyone can access the protected directory, you need to add at
least one user to it. This user will only have access to this specific
directory, and not all of the domain’s protected directories. Every time
you secure a directory with a password, you need to add a user,
otherwise nobody would be able to access it.

To add a user to a password-protected directory, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then click Add
    a User
    .
  3. Type in the username and password, and click OK.

If you decide to change a user’s password, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then click the
    user whose password you want to change.
  3. Type in the new password, and click OK.

If you decide to remove a user entirely, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Click the desired password-protected directory, and then select the
    checkbox corresponding to the user you want to remove.
  3. Click Remove.

Keep in mind that unless there is at least one user associated with a
password-protected directory, no one can browse that directory and its
contents.

If you change your mind and decide to remove password protection from
a directory, follow these steps:

  1. Go to Websites & Domains > Password-Protected Directories.
  2. Select the checkbox corresponding to the directory from which you
    want to remove protection, and then click Remove Protection.
Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

How to Check Open Ports in Linux (Simple Commands & Tools)

Read More »

Linux Logs Explained

Read More »

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »
Knowledge Base

Protecting Sites from Hotlinking (Windows)

Read More »

ASP.NET Settings (Windows)

Read More »

Web Publishing with Web Deploy (Windows)

Read More »

Setting Up Custom Error Pages on Windows Servers

Read More »

Hosting Wiki

  • Linux Containers
  • Windows Server
  • Linux
  • Domain
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family