Enable Directory-Based Password Protection for Your Website
Last Modified: November 26, 2024
(Rev. v4.0)
by Ryan T. M. Reiffenberger
If you want to password protect access to your WordPress website with simple HTTP authentication, you can enable this by using the WP Toolkit features available in cPanel. You can restrict public access to your website by requiring all visitors to provide username and password. This is useful, for example, if your website is work in progress and you only want selected people to be able to view it.
Please keep in mind though, that leaving your site password protected for too long can negatively impact your SEO if search engines cannot continue to index your site.
- Log into cPanel
- On the left-hand menu, click WP Toolkit
- Find the WordPress site you want to enable Maintenance Mode for, and toggle Password protection to On
- You’ll be prompted to create a username and password to log in. If you don’t do this, your site will not be protected.
- Click Protect