# How to Protect a Staging Directory with Plesk

https://ferkesh.net/knowledgebase/article/plesk-protect-a-staging-directory

![Four-step workflow. Confirm exact scope. Add protection. Test signed-out access. Test authorized access.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-11.svg#plesk-protect-a-staging-directory)

Identify the exact domain or staging subdomain, document root and directory. Confirm that this location is separate from the live storefront and excluded from production health checks. In Plesk, locate the appropriate Password-Protected Directories control if your subscription offers it. Use a dedicated test credential for that location.

Verify both behaviors before storing unpublished content. A signed-out request to the directory and a direct request to a known file inside it should challenge for credentials. Enter authorized credentials in a separate browser profile and confirm the expected staging page and styles load. A page can load correctly while a file path served by a different host remains exposed, so verify the actual asset URLs.

Treat any noindex directive as crawl guidance. It is helpful for staging but does not authenticate visitors. Keep copies of the change scope and test results, and review who still needs access after QA. If the hosting plan does not expose the control, ask the provider for a site-scoped alternative.

## Related guides

- [How to Keep WordPress Staging Out of Search Results](https://ferkesh.net/knowledgebase/article/wordpress-keep-staging-out-of-search)
- [Plesk category](https://ferkesh.net/knowledgebase/category/plesk)

## Official references

- [Plesk restricting access to content](https://docs.plesk.com/en-US/obsidian/administrator-guide/website-management/websites-and-domains/restricting-access-to-content.65152/)

Ferkesh Hosting. Last reviewed November 26, 2026.
