0

Lets say i have some sub-domains under one single Multi-site:

How do i HIDE the one site only, from the public access.
(or) Put the site as something like Unpublished (or) dark site?

** HIDE means prevent the "Public" users to see the site. (or) Something like, only the LOGGED IN users via wp-admin (a.k.a) Admins can see the Site and Pages.

Any plugin or approach please?
Thank you so much.

2
  • Please clarify what exactly you mean by "hide". This can mean plenty of things e.g. not listed in the backend, causing a 404 when visited on the front end, just restricting access while still letting the visitor know the site exists but is non-public,...
    – kraftner
    Mar 24, 2015 at 14:15
  • Only the logged in users from wp-admin (a.k.a) Admins can see the pages. Mar 25, 2015 at 3:08

2 Answers 2

2

There are a few options for this:

Premium Plugins:

Open Source Plugins:

Custom:

  • If the site uses a unique theme or child theme, one way is to create an empty file called index.html and store it in the root directory of your sub site. That should work because index.html will be displayed in place of index.php, which is what WordPress uses.
1

After seeing your clarification in the original question:

Every page inside the subsite you're trying to "hide" would need to be set so that only users with the permission level of "Admin" can see the page.

Anyone will be able to see that the page exists. Users are not logged in or are logged in but don't have the correct permission level that land on the restricted pages will receive a "This page is restricted" notification, where users that are logged in and have the appropriate permission level will be able to see all content within the page.

2
  • "Every page inside" ?? So this is how WP works to prevent a sub-site from public access? :3 Mar 25, 2015 at 3:06
  • See edits above. Mar 25, 2015 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.