Title: Force login to make the site private &#8211; Gozer
Author: Fernando Tellado
Published: <strong>29 ខែ​មករា, 2026</strong>
Last modified: 12 ខែ​មិថុនា, 2026

---

ស្វែងរក កម្មវិធីបន្ថែម

![](https://ps.w.org/gozer/assets/banner-772x250.jpg?rev=3450072)

![](https://ps.w.org/gozer/assets/icon-256x256.jpg?rev=3450003)

# Force login to make the site private – Gozer

 By [Fernando Tellado](https://profiles.wordpress.org/fernandot/)

[Download](https://downloads.wordpress.org/plugin/gozer.2.0.0.zip)

[Live Preview](https://km.wordpress.org/plugins/gozer/?preview=1)

 * [Details](https://km.wordpress.org/plugins/gozer/#description)
 * [Reviews](https://km.wordpress.org/plugins/gozer/#reviews)
 *  [Installation](https://km.wordpress.org/plugins/gozer/#installation)
 * [Development](https://km.wordpress.org/plugins/gozer/#developers)

 [Support](https://wordpress.org/support/plugin/gozer/)

## Description

Gozer makes your entire WordPress site private by requiring visitors to log in before
they can see any content. Perfect for intranets, membership sites, development environments,
or any site that needs restricted access.

Unlike other force login plugins, Gozer gives you complete control over exceptions.
Configure exactly what should remain publicly accessible through an intuitive settings
page.

#### Key Features

 * **One-click activation** – Enable force login with a single checkbox
 * **Admin bar toggle** – Quick on/off switch directly from the toolbar
 * **System exceptions** – Keep REST API, WP-Cron, WP-CLI, and AJAX working
 * **SEO-friendly** – Allow search engine bots, sitemaps, and robots.txt
 * **Custom paths** – Define specific pages that should remain public
 * **Advanced IP whitelist** – Supports individual IPs, CIDR notation, and wildcards
 * **Temporary bypass tokens** – Generate shareable links for temporary access
 * **User agent rules** – Grant access to monitoring services
 * **Flexible redirects** – Choose login page, 403 error, or custom URL
 * **Lightweight** – No bloat, just the features you need

#### IP Whitelist Formats

The plugin supports multiple IP formats:

 * Individual IPs: `192.168.1.1`
 * CIDR notation: `192.168.1.0/24` or `10.0.0.0/8`
 * Wildcards: `192.168.*` or `10.*.*.*`

#### Temporary Bypass Tokens

Generate secure, time-limited access links perfect for:

 * Client reviews of staging sites
 * Sharing with contractors or agencies
 * Temporary access for support teams
 * Preview links for stakeholders

#### Use Cases

 * Private company intranets
 * Client staging sites
 * Membership communities
 * Development and testing environments
 * Employee portals
 * Educational platforms

### Support

Need help or have suggestions?

 * [Official website](https://servicios.ayudawp.com)
 * [WordPress support forum](https://wordpress.org/support/plugin/gozer/)
 * [YouTube channel](https://www.youtube.com/AyudaWordPressES)
 * [Documentation and tutorials](https://ayudawp.com)

Love the plugin? Please leave us a 5-star review and help spread the word!

### About AyudaWP

We are specialists in WordPress security, SEO, and performance optimization plugins.
We create tools that solve real problems for WordPress site owners while maintaining
the highest coding standards and accessibility requirements.

## Screenshots

[⌊General settings with admin bar toggle indicator⌉⌊General settings with admin 
bar toggle indicator⌉[

General settings with admin bar toggle indicator

[⌊System exceptions - Control WordPress core functionality access⌉⌊System exceptions-
Control WordPress core functionality access⌉[

System exceptions – Control WordPress core functionality access

[⌊SEO exceptions - Configure search engine access⌉⌊SEO exceptions - Configure search
engine access⌉[

SEO exceptions – Configure search engine access

[⌊Custom exceptions with CIDR and wildcard support⌉⌊Custom exceptions with CIDR 
and wildcard support⌉[

Custom exceptions with CIDR and wildcard support

[⌊Temporary bypass tokens management⌉⌊Temporary bypass tokens management⌉[

Temporary bypass tokens management

[⌊Redirect behavior options⌉⌊Redirect behavior options⌉[

Redirect behavior options

## Installation

 1. Upload the `gozer` folder to `/wp-content/plugins/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to Settings > Gozer to configure options
 4. Enable the “Require login to access the site” checkbox
 5. Configure exceptions as needed

## FAQ

### Will this break my site?

The plugin is designed with safe defaults. Critical functionality like REST API,
WP-Cron, and AJAX are allowed by default to prevent breaking the block editor or
scheduled tasks.

### Can search engines still index my site?

Yes, if you enable the “Allow search engine crawlers” option. Major search engine
bots (Google, Bing, etc.) will be able to access and index your content.

### How do I allow specific pages to be public?

Go to Settings > Gozer and add paths to the “Allowed paths” field. Enter one path
per line, like `/contact/` or `/about/`.

### How do I whitelist an entire IP range?

Use CIDR notation (e.g., `192.168.1.0/24` for a /24 subnet) or wildcards (e.g., `
192.168.*` for all IPs starting with 192.168).

### How do bypass tokens work?

Generate a token in Settings > Gozer, then share the generated URL. Anyone with 
that link can access the site without logging in until the token expires.

### Can I use it on a multisite network?

Yes, the plugin works on multisite installations. Each site can have its own configuration.

### Why “Gozer”?

Gozer the Gozerian is the supernatural entity from Ghostbusters (1984) who asked“
Are you a god?” before denying access to mere mortals. Just like our plugin does
with your site visitors.

### Why can a logged-in user still not see my site?

If you set a “Minimum access level” higher than the user’s role, logged-in users
below that level are treated like logged-out visitors and shown a 403 page. This
front-end restriction is independent from the WordPress dashboard: a Subscriber 
can still reach their profile screen but will not see the front-end. Set the access
level back to “Any logged-in user” to allow every logged-in user through.

### I enabled private mode but old pages still load without logging in

A page cache (a caching plugin, your host, or a CDN) can serve pre-generated HTML
without running WordPress, so Gozer never sees those requests. Gozer purges the 
major caching plugins automatically when you activate the plugin, toggle private
mode, or save settings, but if your host or CDN caches HTML you may need to purge
it once after enabling Gozer.

## Reviews

![](https://secure.gravatar.com/avatar/1028b1cc5754b82ce51ed070668af0699a8834fa2256d59e0469ea8b256c8152?
s=60&d=retro&r=g)

### 󠀁[Good plugin but work in progress](https://wordpress.org/support/topic/good-plugin-but-work-in-progress/)󠁿

 [newen46](https://profiles.wordpress.org/newen46/) 11 ខែ​មិថុនា, 2026 1 reply

Plugin is effectively redirecting all visitors to your login page.Simple and effective.
Beware of one thing, depending of refresh time of your site, whitelist can take 
some time to be taken into consideration, but this would be a wordpress issue, not
a plugin one.

 [ Read all 1 review ](https://wordpress.org/support/plugin/gozer/reviews/)

## Contributors & Developers

“Force login to make the site private – Gozer” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

“Force login to make the site private – Gozer” has been translated into 2 locales.
Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/gozer/contributors)
for their contributions.

[Translate “Force login to make the site private – Gozer” into your language.](https://translate.wordpress.org/projects/wp-plugins/gozer)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/gozer/), check out 
the [SVN repository](https://plugins.svn.wordpress.org/gozer/), or subscribe to 
the [development log](https://plugins.trac.wordpress.org/log/gozer/) by [RSS](https://plugins.trac.wordpress.org/log/gozer/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.0

 * New: Minimum access level. Require a minimum role (Subscriber, Contributor, Author,
   Editor, or Administrator) for logged-in users to view the front-end. Lower-privileged
   users are shown a 403 page instead of the content, so an intranet can keep subscribers
   out while letting editors in. The front-end access level is independent from 
   WordPress dashboard capabilities.
 * New: Custom 403 block screen. Set your own title and message (basic HTML allowed)
   for the 403 mode without editing your theme. A theme 403.php template still takes
   precedence if present.
 * Improved: Page cache hardening. When a visitor is blocked, Gozer now sets DONOTCACHEPAGE
   and sends no-cache headers on every block path (login redirect, custom URL, and
   403) so page caches and CDNs never serve the block response to the wrong visitor.
   Public exceptions stay fully cacheable, and known page caches are purged automatically
   when the plugin is activated or deactivated and when private mode or the settings
   change.
 * Improved: The REST API, XML-RPC and AJAX system exceptions now take effect for
   logged-out visitors instead of being informational. With the site private and
   the exception off, /wp-json/ stops exposing your content to anonymous requests
   and XML-RPC is disabled; logged-in users and the IP, user-agent and bypass-token
   exceptions are always respected.
 * Fix: An “Allowed paths” entry of “/” exposed the entire site instead of just 
   the homepage it promises. It now matches the homepage only, on root and subdirectory
   installs alike.
 * Fix: On subdirectory installs, the login redirect built the return URL with the
   site path doubled (e.g. /site/site/), landing visitors on a 404 after signing
   in.
 * Fix: WordPress’ virtual robots.txt was blocked on sites using “plain” permalinks(
   served as /?robots=1) even with the robots exception enabled. Both the virtual
   and the physical robots.txt are now recognized.
 * Fix: “Allowed paths” rules were ignored on subdirectory installs because the 
   request path includes the subdirectory. Rules now also match with the install
   base prefixed, so “/contact/” matches “/site/contact/”.
 * Fix: IP whitelist wildcards now work as documented. A pattern like 192.168.* 
   matched no real address before (it expected a single octet); a trailing * now
   covers the rest of the address, so 192.168.* allows the whole 192.168.x.x range.
 * Fix: The “Redirect to custom URL” option now works with external URLs. wp_safe_redirect
   only allowed the site’s own host, so an external address silently fell back to
   wp-admin; the configured host is now allowed.

For older changelog entries, please check the [changelog.txt](https://plugins.svn.wordpress.org/gozer/trunk/changelog.txt)
file

## មេតា

 *  Version **2.0.0**
 *  Last updated **3 ថ្ងៃ មុន**
 *  Active installations **30+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/gozer/), [Spanish (Chile)](https://cl.wordpress.org/plugins/gozer/),
   and [Spanish (Spain)](https://es.wordpress.org/plugins/gozer/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/gozer)
 * Tags
 * [access](https://km.wordpress.org/plugins/tags/access/)[login](https://km.wordpress.org/plugins/tags/login/)
   [privacy](https://km.wordpress.org/plugins/tags/privacy/)[private](https://km.wordpress.org/plugins/tags/private/)
   [restricted](https://km.wordpress.org/plugins/tags/restricted/)
 *  [Advanced View](https://km.wordpress.org/plugins/gozer/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/gozer/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/gozer/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/gozer/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/gozer/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/gozer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gozer/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/gozer/reviews/)

## Contributors

 *   [ Fernando Tellado ](https://profiles.wordpress.org/fernandot/)
 *   [ Ayuda WordPress ](https://profiles.wordpress.org/ayudawp/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/gozer/)