My Private Site

Wordpress Plugin
Download latest - 3.0.11

Developers

dgewirtz

Download Stats

Today 31
Yesterday 55
Last Week 413
All Time 138,110
Banner 772x250

Allows the Administrator to restrict a WordPress-based web site to viewing only by registered users who are logged on. Any attempt, by anyone not logged, to view any Page, Post or other part of the site will display a WordPress login screen.

Login prompts are provided whenever a non-logged in user ("site visitor") attempts to access any URL controlled by WordPress on the web site.

Note: If privacy isn't turned on for your theme, use the Compatibility Mode option on the Site Privacy tab. This is known to apply to Elementor, Oxygen, and Twenty Twenty Two themes.

Features and Settings

  • Supports WordPress Networks ("Multisite"), with Network-wide Settings planned for a future version
  • A separate Setting is provided for hiding or revealing Site Home without the need to enter its URL
  • Supports Custom Login and Registration pages at URLs different than the standard WordPress Login and Registration URLs
  • Landing Location settings determine what the User sees after successfully logging in
  • Landing Location is set for both automatic Login prompts and the Meta Widget's Login link
  • New hide-if privacy shortcode allows selective content to be hidden or shown based on login status
  • User Self-Registration settings (varies between Network and Non-Network WordPress) are presented on the plugin's Settings page for easy access
  • No known Theme incompatibilities, and only known Plugin incompatibility is with the A5 Custom Login plugin
  • Special functionality is included to not hide Login- and Registration-related URLs used by BuddyPress and Theme My Login plugins
  • Remember Me improvements at Login via free companion plugin, jonradio Remember Me, which can be downloaded separately from the WordPress Plugin Repository
  • Overrides WordPress hiding of Network Activated plugins, just for itself; to provide this feature for all plugins, use the free companion plugin, Reveal Network Activated Plugins, which can be downloaded separately from the WordPress Plugin Repository
  • Setting to disable the plugin so that other plugin Settings can be changed when the Site is not set to Private

If you allow Self-Registration, where new Users can Register themselves, you will need to select the "Reveal User Registration Page" setting or new Users will be blocked from seeing the WordPress Registration screen (on WordPress Networks, turning off the Reveal User Registration Page setting on the "Main Site" will prevent Registration from all Sites). For convenience, the WordPress Setting that controls Self-Registration of Users has been added to the Plugin's Settings page.

Another Setting allows the Private Site feature to be turned off. When the plugin is installed and activated, the Private Site feature is set off by default, to allow the Administrator an opportunity to become familiarized with the plugin's features and to set the desired settings. A warning that the site is not private appears after first activation of the plugin until the Administrator visits the plugin's Settings page.

If a WordPress Network is defined, the plugin can be activated individually for select sites. Or Network Activated. In either case, each site will have its own Settings page where the Private Site feature can be turned off (default) or on for just the one site, and a Landing Location defined for each site.

Yes, there are other plugins that hide some or all WordPress content for any site visitor who is not logged on. But when I was searching for a solution for one of the web sites I support, I decided to "write my own" because I knew how it worked and felt comfortable that there would be no way for anyone not logged in to view the site, including Search Engines.

Watch the intro video

https://youtu.be/5bW88-4BlF4

Premium Add-ons

  • Public Pages: Allows site operators to designate certain specific pages, or pages with specified prefix, to be available to the public without login. Watch the video
  • Selective Content: Allows hiding, showing, and obscurifying page content through the use of shortcodes. Can also selectively hide widgets and sidebars. Watch the video

Limits

This plugin does not hide non-WordPress web pages, such as .html and .php files. It also wont restrict images and other media and text files directly accessed by their URL. It also won't restrict REST API requests. If your hosting providers filesystem protections havent been set up correctly, files may also be accessed by directory listing.

Support Note

Support has moved to the ZATZLabs site and is no longer provided on the WordPress.org forums. If you need a timely reply from the developer, please open a ticket.

Mailing List

If you'd like to keep up with the latest updates to this plugin, please visit David's Lab Notes and add yourself to the mailing list.

Adoption Notice

This plugin was recently adopted by David Gewirtz and ongoing support and updates will continue. Feel free to visit David's Lab Notes for additional details and to sign up for emailed news updates. Special thanks to Jon 'jonradio' Pearkins for creating the plugin and making adoption possible.


Releases (38 )

Version Release Date Change Log
3.0.11 2022-11-03
  • Fixed a CMB2 type error that popped up from time to time (Thanks, Michael!)
3.0.10 2022-06-09
  • Fixed a bunch of over-eager security checks
3.0.9 2022-06-04
  • Fixed compatibility switch bug
3.0.8 2022-05-30
  • Fixed some security bugs
3.0.6 2022-02-06
  • Moved compatibility mode option to Site Privacy tab and added additional theme compatibility fixes
3.0.5 2021-09-14
  • Added a compatibility mode option on the Advanced tab which will hopefully finally fix the Elementor issues
3.0.3 2020-08-07
  • Added Advanced feature allowing users to specify custom password reset page
3.0.2 2020-08-03
  • Fixed duplicate header bug found on some systems
3.0.1 2020-06-28
  • Minor bug fixes
  • Added uninstall telemetry
3.0.0 2020-05-20
  • Complete rewrite with an entirely new, streamlined UI
  • Added the selective content subsystem
2.14.2 2019-02-09
  • Minor fix for password reset. Thanks to user o2Xav.
2.14.1 2016-09-11
  • Minor support update
2.14 2015-09-02
  • Force login at 'get_header' instead of 'template_redirect' Action to be compatible with wpengine.com hosting
  • Allow Custom Login page that is NOT on the current WordPress site, and clean up Settings page validation of related fields
  • Fix double display of Error Messages on Settings page
2.1 2015-04-15
  • Add a settings checkbox to reveal the Register page for User Self-Registration
2.10 2015-04-15
  • Add setting to no display a Users submenu option for the plugin's settings
  • Conditional logic for Settings Saved update message in Validate function
2.10.1 2015-04-15
  • Add setting to obey Landing Location for users who login via a URL of wp-login.php without a &redirect_to
2.11 2015-04-15
  • In a WordPress Network ("Multisite"), block Users with No Role on the current Site
  • Make Landing Location work when free Paid Membership Pro plugin is activated
2.11.1 2015-04-15
  • Remove forced logout when User with No Role attempts to access a Site (Network/Multisite install), to fix repeated messages when wp_logout is hooked by other plugins
2.11.2 2015-04-15
  • Provide a Setting to disable User with No Role behaviour introduced in 2.11
2.11.3 2015-04-15
  • Use Custom Login setting, if present, to redirect failed login attempts
2.11.4 2015-04-15
  • Use Custom Login setting, if present, to redirect failed login attempts with blank username and/or password
2.12 2015-04-15
  • Wait until Pretty Permalinks applied before deciding whether to force a login
  • Add an Override Advanced Setting with Warnings on Usage, to allow Landing Location and Custom Login to both be specified.
  • Correct coding error that allowed Landing Location with Custom Login, a potential Redirection error
  • Fix Error Log warning on [mb]strpos Offset parameter
2.13 2015-04-15
  • Remove Plugin's entry on Users submenu on WordPress Admin panels
  • Remove associated Setting, which determined whether Users submenu entry existed
2.2 2015-04-15
  • Add the WordPress User Self-Registration field to the plugin's Settings page
  • Add the Settings page to the User submenu of Admin panel, too
2.3 2015-04-15
  • Add Setting to Reveal Home Page on a Private Site
  • Fixed Problems with wp_registration_url function in WordPress prior to Version 3.6
2.4 2015-04-15
  • Handle BuddyPress' redirection of Register URL in Reveal Registration
2.4.1 2015-04-15
  • Fix bug in URL matching for Root, where one URL has a trailing slash and the other does not
2.4.2 2015-04-15
  • Reveal BuddyPress /activate/ Activation page when Reveal Registration selected
2.5 2015-04-15
  • Allow other URLs to be Always Visible with new Setting
2.6 2015-04-15
  • Detect and make visible Login-associated Pages created by the Theme My Login plugin
2.6.1 2015-04-15
  • Older versions of WordPress require a parameter be passed to get_post()
2.6.9 2015-04-15
2.7 2015-04-15
  • Add Custom Login URL setting
2.8 2015-04-15
  • Add Prefix option to Always Visible URLs
  • Automatically use mb_ Multi-Byte string functions, if available
2.9 2015-04-15
  • Set Landing Location for logins via Meta Widget link, as well as automatic Login prompts
1.0 2015-04-15
  • Add readme.txt and screenshots
  • Add in-line documentation for php functions

=

1.1 2015-04-15
  • Change Action Hook to 'wp' from 'wp_head' to avoid Modify Header errors when certain other plugins are present
2.0 2015-04-15
  • Add Settings page, specifying Landing Location and turning Private Site off and on
  • Warning for new default of OFF for Private Site until Settings are first viewed
  • Add Networking Settings information page
  • Track plugin version number in internal settings
  • Replace WordPress Activation/Deactivation hooks with Version checking code from jonradio Multiple Themes
  • Add Plugin entry on individual sites when plugin is Network Activated, and Settings link on all Plugin entries