內容簡介
這個外掛可以將不屬於網誌的註冊群組的訪客重新導向至網誌。
這個外掛是 Groups 的擴充功能,需要先安裝 Groups。
需注意,目前的版本不允許指定特定的群組,因此這個外掛的狀態可以被視為實驗性質。
可以在「設定」>「Groups Blog Protect」中調整重新導向設定:
重新導向選項可以針對網誌設定,或多站點設定中的每個網誌進行設置:
不進行重新導向
重新導向至特定文章,注意這個選項只會顯示網誌,但是只能訪問該頁面
重新導向至 WordPress 登入頁面
重新導向的狀態碼可以選擇以下其中一種:
永久移動 (301)
臨時移動 (302)
查看其他 (303)
暫時重新導向 (307)
外掛標籤
開發者團隊
原文外掛簡介
The plugin protects a site so that only members can access its pages.
Suitable for site lockdowns, private sites and sites that are under construction.
It allows to redirect visitors to a particular page or to the WordPress login.
Members who are logged in have access to the site.
Members must belong to the site’s Registered group, or to a particular group as determined specifically for the site.
The plugin is an extension to Groups which is required.
The redirection settings can be adjusted in Settings > Groups Blog Protect :
Redirection options can be set for the blog – or for each blog in a multisite setup:
no redirection
redirect to a specific post, note that with this option the blog is shown to the visitor but only that page can be visited
redirect to the WordPress login
The redirect status code can be selected among:
Moved Permanently (301)
Found (302)
See other (303)
Temporary Redirect (307)
Site administrators can determine which group is used to protect the site:
By default, users must belong to the Registered group to be able to access the site, so any registered user who is logged in will have access.
The constant GROUPS_BLOG_PROTECT_GROUP can be set in wp-config.php to indicate the name of the group to which users must belong to be able to access the site.
For multisites, the GROUPS_BLOG_PROTECT_GROUP_n constant can be used to indicate the name of the group required to access a particular site, where n is the blog ID of the site.
