Visitor Restrictions
BuddyPress Private Community Pro overviewPremiumGet BuddyPress Private Community Pro →
The Visitor Restrictions tab controls what people who are not logged in can reach.
Every setting here affects logged-out visitors only. Settings are stored in the
blpro_nl_settings option.
Lock BuddyPress components
Section titled “Lock BuddyPress components”Turn on Lock BuddyPress components, then choose which of the following to protect:
- Members directory - the members directory only; member profiles stay open.
- Activity (site feed and each member’s Activity tab) - the activity directory and every member’s Activity tab, which is also the page a profile opens on by default.
- Member pages (profile and every tab) - every member’s whole page: the profile and every tab on it, including Friends, Groups and tabs added by other plugins. Member activity RSS feeds close too.
- Groups (directory, group pages and members’ Groups tab).
When a logged-out visitor opens a locked component, the plugin swaps the BuddyPress
template for its locked-content template (the login prompt or your custom message). This
runs on the bp_located_template filter.
Lock custom post types
Section titled “Lock custom post types”Turn on Lock custom post types and select which public custom post types to protect.
Both the archive and single views are covered (through the template_include and
single_template filters). The list of selectable post types can be filtered with
blpro_restrictable_post_types.
Lock WordPress pages
Section titled “Lock WordPress pages”Turn on Lock WordPress pages and pick individual pages. Logged-out visitors who open a locked page receive the locked-content template instead of the page.
When your site uses a static front page, the page set as the Posts page (Settings > Reading) can be locked too: the blog index and every page of it show the locked template to logged-out visitors. The static front page itself can be locked the same way.
When the front page shows Your latest posts, no page stands for the homepage, so the list has a Homepage (latest posts) choice. Tick it to lock the blog homepage and its next pages for logged-out visitors. The choice is ignored while a static front page is set.
Hidden from search
Section titled “Hidden from search”Locked components, pages, and custom post types are also removed from front-end search
results for logged-out visitors, so protected content does not leak through the search
index. Only the locked post types are removed; posts, pages and every other searchable type
stay in the results. This runs on pre_get_posts.
What a locked page reveals
Section titled “What a locked page reveals”A locked page, and a profile hidden from the viewer, keeps its content out of everything a visitor or a link preview can read:
- The browser title is the neutral “Members Only” followed by your site name, not the name of the
locked member, group or page. The
bplock_locked_template_pg_titlefilter changes the wording. - Search engines are told not to index the page. With Rank Math active it is marked noindex and the author is left out of link previews.
- Yoast SEO and Rank Math show no page text in the meta description, and no social tags or schema from them are printed.
- The comments feed link and the member and group activity RSS feed links are left out of the page head, because their titles name the page.
What the lock covers
Section titled “What the lock covers”For logged-out visitors the plugin replaces the BuddyPress template, the page or the custom post type template with the locked screen, and removes locked items from front-end search. For locked BuddyPress components it also refuses the matching BuddyPress REST API routes (activity, members, groups, xprofile) and turns off the matching BuddyPress activity RSS feeds. It does not add its own protection to WordPress REST API routes for pages and posts, XML sitemaps or the feeds of posts and pages.
What visitors see instead
Section titled “What visitors see instead”Choose one of three behaviors for restricted content:
- Use built-in form. Show the plugin’s own login form, preceded by a restriction message you edit with the rich-text editor. This is the default.
- Another plugin’s login form. Paste a login-form shortcode from another plugin and the plugin renders it in place of the built-in form.
- Redirect to a page. Send visitors to a page you choose.
The restriction message and the login/registration behavior are covered in more detail in Login and registration.
Note on scope
Section titled “Note on scope”Restriction here is by explicit selection of components, pages, and post types. There is no free-text list of allowed or blocked URLs; you choose the specific items to lock. All of these checks apply only while the visitor is logged out.

