Linux 软件免费装
Banner图

Force login to make the site private - Gozer

开发者 fernandot
ayudawp
更新时间 2026年6月17日 02:05
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

privacy login private access restricted

下载

1.0.2 2.0.0 1.0.3 1.0.4 1.0.0 1.0.1

详情介绍:

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 IP Whitelist Formats The plugin supports multiple IP formats: Temporary Bypass Tokens Generate secure, time-limited access links perfect for: Use Cases

安装:

  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

屏幕截图:

  • System exceptions - Control WordPress core functionality access
  • SEO exceptions - Configure search engine access
  • Custom exceptions with CIDR and wildcard support
  • Temporary bypass tokens management
  • Redirect behavior options

升级注意事项:

2.0.0 Major update. New: minimum-role gate, custom 403 screen. Heads-up: REST API/XML-RPC/AJAX exceptions now really block logged-out visitors; XML-RPC is off by default (re-enable for Jetpack/the app). Fix: a "/" allowed path now matches only the homepage.

常见问题:

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.

更新日志:

2.0.0