My Private Site – Make Your Whole Site Private, Force Login & Block Registration Spam source code
By David Gewirtz, on WordPress.org since 2012. 10,000+ active installs.
My Private Site makes your WordPress site private so only logged-in users can see your content. Below is its source code for every one of its 51 releases, what changed in the latest one, and how often it ships.
What changed in 4.2.3
Released Sep 1, 2026, 1 month after 4.2.1- Fixed unauthenticated access to protected post and comment feeds when using classic themes.
- Protected WordPress XML sitemaps across themes and compatibility modes.
- Hardened aggregate content routes so page-level exemptions cannot expose protected content or URLs.
- Hardened direct comment and pingback access, protected REST membership checks, reCAPTCHA verification, license transport, backup restore, cleanup deletion, and uninstall handling.
- Corrected Public Pages, Tags & Categories, and Guest Access rule composition so forged or unresolved access states cannot become public.
- Updated the bundled CMB2 library to version 2.12.0 for current WordPress and PHP compatibility.
100 files changed since 4.2.1: 79 modified, 21 added, 0 removed.
- admin/addons.php modified, +161 bytes
- admin/advanced.php modified, +773 bytes
- admin/landing-page.php modified, +624 bytes
- admin/licenses.php modified, +356 bytes
- admin/main.php modified, +446 bytes
- admin/membership.php modified, +453 bytes
- admin/public-pages.php modified, +202 bytes
- admin/selective-content.php modified, +42 bytes
- admin/site-privacy.php modified, +974 bytes
- admin/spam-account-cleanup.php modified, +3,356 bytes
And 90 more.
Compare 4.2.1 with 4.2.3Release history
51 releases since April 2015- 4.2.3 Sep 1, 2026 Fixed unauthenticated access to protected post and comment feeds when using classic themes.
- 4.2.1 Jul 26, 2026 Fixed privacy enforcement for block themes when using Standard compatibility mode.
- 4.2 Jun 29, 2026 Added Spam Account Cleanup, a staged dry-run, CSV export, and batch deletion tool for safely removing spam subscriber accounts.
- 4.1.1 Jun 5, 2026 Added the Protection-tab Registration Spam Guard controls for honeypot, gibberish username, excessive email dots, missing MX, and StopForumSpam checks.
- 4.1.0 Jan 28, 2026 Added Registration Spam Guard and reCAPTCHA login protection to the free plugin.