Title: Buddyfence
Author: JC
Published: <strong>2017 年 7 月 30 日</strong>
Last modified: 2022 年 5 月 23 日

---

搜索插件

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

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/buddyfence/assets/icon-128x128.png?rev=1705358)

# Buddyfence

 作者：[JC](https://profiles.wordpress.org/jcrr/)

[下载](https://downloads.wordpress.org/plugin/buddyfence.zip)

 * [详情](https://cn.wordpress.org/plugins/buddyfence/#description)
 * [评价](https://cn.wordpress.org/plugins/buddyfence/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/buddyfence/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/buddyfence/#developers)

 [支持](https://wordpress.org/support/plugin/buddyfence/)

## 描述

Buddypress pages are public by default. This plugin allows you to restrict not logged-
in users from accessing these pages.

If an anonymous user tries to access these pages, they will be redirected either
to the login page, or to the homepage, or even to a custom page.

The plugin also allows to display on these pages a template with a message to log
in instead of directly redirecting them elsewhere.

### Features

 * Very easy to use, you only have to choose which pages want to retrict to anonymous
   users (not logged-in users).
 * Small and lightweight plugin (around 10-15kb).
 * No CSS, no scripts. No requests to static files.
 * Fully translated into Spanish.

### Support

Need help? Any bugs to report? Any suggestions? Please contact me.

You can help me too either by rating this plugin or by making a donation.

## 屏幕截图

 * [[
 * plugin settings

## 安装

1.1. From your WordPress dashboard: Plugins -> New Plugin, search for “Buddyfence”
and click install.
 1.2. From the WordPress directory: Download the plugin and copy
the zip file to the “/wp-content/plugins/” folder of your WordPress installation.
2. Activate the plugin. 3. Go to the settings page (Settings -> Buddyfence) and 
that’s it!

## 评价

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

### 󠀁[Excelente](https://wordpress.org/support/topic/excelente-1601/)󠁿

 [libreemp](https://profiles.wordpress.org/libreemp/) 2019 年 7 月 1 日

Es ligero, fácil de usar y con las opciones básicas para cumplir su función.

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

### 󠀁[Sencillo y eficiente](https://wordpress.org/support/topic/sencillo-y-eficiente-2/)󠁿

 [comono](https://profiles.wordpress.org/comono/) 2019 年 1 月 27 日

Es un plugin excelente. Tiene pocas opciones, pero es exactamente lo que necesito!!!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/buddyfence/reviews/)

## 贡献者及开发者

「Buddyfence」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ JC ](https://profiles.wordpress.org/jcrr/)

[帮助将「Buddyfence」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/buddyfence)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/buddyfence/)，查看[SVN仓库](https://plugins.svn.wordpress.org/buddyfence/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/buddyfence/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/buddyfence/)。

## 更新日志

#### 1.2.2 date 2021-03-05

 * Added redirections to custom / external URLs.

#### 1.2.1 date 2019-10-24

 * Developers update. Added the buddyfence_before_template and the buddyfence_after_template
   action hooks.

#### 1.2.0 date 2018-11-08

 * Added restrictions to user profiles.
 * Added redirections to custom pages.
 * Updated the es_ES translation.

#### 1.1.2 date 2018-02-11

 * BuddyPress page with a login request template, new behavior: Upon logging in,
   users will be sent to the page where they were originally trying to access.

#### 1.1.1 date 2017-11-17

 * Added new URL redirection options.
 * Added CSS classes to the custom template so that you can style it.
 * Compatible with PHP 7.1 and WordPress 4.9

#### 1.1.0, date 2017-08-08

 * You can now display a “restricted area” message to anonymous users.
 * Translated into es_ES. ¡Ahora en español!

#### 1.0.0, date 2017-07-30

 * Initial release.

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**4 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.0.12**
 *  语言
 * [English (US)](https://wordpress.org/plugins/buddyfence/)
 * 标签
 * [buddypress](https://cn.wordpress.org/plugins/tags/buddypress/)[members](https://cn.wordpress.org/plugins/tags/members/)
   [private](https://cn.wordpress.org/plugins/tags/private/)[redirect](https://cn.wordpress.org/plugins/tags/redirect/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/buddyfence/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/buddyfence/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/buddyfence/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/buddyfence/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/buddyfence/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/buddyfence/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/buddyfence/reviews/)

## 贡献者

 *   [ JC ](https://profiles.wordpress.org/jcrr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/buddyfence/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/jcrr)