Registered Users Only

Require a visitor to sign in before they can see the site, with control over what stays public.

Version
2.1.0
Updated
4 October 2026
Works with
Classifieds
Needs
ShopClass 6.1 or later
PHP
8.0 or later
Tested with
ShopClass 6.4
Category
Admin tools
Price
Free
Licence
GPL-3.0+
Downloads
265
Made by
Navjot Tomer
  • A signed-out visitor is asked to register
    A signed-out visitor is asked to register
  • Choose what stays open to visitors
    Choose what stays open to visitors
1 / 2

Closes the site to visitors who are not signed in. You choose what stays public.

Requirements

  • ShopClass 6.1.0 or later
  • PHP 8.0 or later

Install

  1. Open Plugins → Browse (or upload the zip from the GitHub release).
  2. Install.
  3. Activate.

Set up

  1. Open Plugins → Manage plugins, then Settings next to Registered Users Only.
  2. Tick the areas that stay open to signed-out visitors. Everything not ticked is closed.
AreaDefault
Static pages (terms, privacy notice, imprint)open
Contact formopen
Browsing and search (category listings, search results, sellers' public profiles)closed
Individual listingsclosed
  1. Save.

How it works

  • A signed-out visitor who asks for a closed page goes to the registration page with a message saying why.
  • These are always open: sign in, register, password recovery, account activation, the error page, the sitemap, the feeds, the ajax endpoints, the cron entry point and a signed-in user's own account pages.

Notes / limits

  • Closing browsing and listings hides them from search engines too, since a crawler is a signed-out visitor.
  • The redirect is cached for up to 30 seconds. A longer page cache, such as the nginx Cache plugin's, is purged on ShopClass 6.4.2 and later. On older versions, a page cached before activation can show for one cache window.
  • Derived from the Osclass "Registered users only" plugin (0.9.3). See CHANGELOG.md.

Support

https://github.com/mindstellar/shopclass-plugins/issues

What's new in 2.1.0

Fixed

  • A page cached by nginx before the site was closed kept being served to signed-out visitors (fully purged on ShopClass 6.4.2 and later).
  • A seller's public profile was open to signed-out visitors; it now follows the browsing setting.

Changed

  • The redirect to the registration page may be cached for 30 seconds, and its notice no longer needs a cookie.
  • Activating, deactivating and saving settings purge the page cache when core supports it.

Found a problem with Registered Users Only? Open an issue on GitHub.