How to make your WordPress website private

If you’d like to make your entire WordPress website private the quickest way is to use cPanel directory privacy.

This method can be used if you’re hosting your own WordPress website on cPanel web hosting.

Go to cPanel >> Home >> Files >> Directory Privacy

  • To select a directory, click the desired directory’s name.
  • To view and select subdirectories, click the parent directory’s folder icon (). Then, click the desired subdirectory name.
  • To password protect the selected directory, perform the following steps:
    1. Select the Password protect this directory checkbox.
    2. Enter a display label for the directory in the Enter a name for the protected directory text box.
    3. Click Save. A confirmation message will appear. Click Go Back to return to the directory’s configuration.
  • To create an authorised user for the selected directory, perform the following steps:
    1. Enter the desired username in the Username text box.
    2. Enter and confirm the new password in the appropriate text boxes.Notes:
      • The system evaluates the password that you enter on a scale of 100 points. 0 indicates a weak password, while 100 indicates a very secure password.
      • Some web hosts require a minimum password strength. A green password Strength meter indicates that the password is equal to or greater than the required password strength.
      • Click Password Generator to generate a strong password.
    3. Click Save. A confirmation message will appear. Click Go Back to return to the directory’s configuration.

If you don’t have access to cPanel

If you don’t have access to cPanel, you can make your site private or hidden.

  • Go to your blog’s dashboard.
  • Select Settings.
  • From there, select Privacy.
  • You’ll see three options: Public, Hidden, and Private. If you select “Hidden”, search engines will no longer link to your site but anyone who has the address of your blog will be able to see everything. Select Private to make your blog private.

If you don’t have access to Settings > Privacy

If you don’t have access to Settings > Privacy, you can make your Posts or Pages private.

To do this, go to your WordPress dashboard (www.yourdomain.com/wp-admin), then go to Posts > All Posts (or Pages > All Pages).

Underneath a Page or Post name, click Quick Edit, and enter a Password, and click Update on the right, or select Private, next to the Password box, which means visitors will need to be logged into the site to see the Post or Page.