Title: Anonymous Restricted Content
Author: taras.sych
Published: <strong>2018 年 6 月 25 日</strong>
Last modified: 2024 年 11 月 18 日

---

搜尋外掛

![](https://ps.w.org/anonymous-restricted-content/assets/banner-772x250.jpg?rev=
1898412)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/anonymous-restricted-content/assets/icon-256x256.jpg?rev=1898412)

# Anonymous Restricted Content

 由 [taras.sych](https://profiles.wordpress.org/cayenne/) 開發

[下載](https://downloads.wordpress.org/plugin/anonymous-restricted-content.1.6.6.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/anonymous-restricted-content/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/anonymous-restricted-content/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/anonymous-restricted-content/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/anonymous-restricted-content/#developers)

 [技術支援](https://wordpress.org/support/plugin/anonymous-restricted-content/)

## 外掛說明

This plugin is as simple as you expected!
 And it support latest WordPress Gutenberg
editor now!

Mark the content you want to hide as restricted with just a checkbox – and it’s 
done!

In case anonymous user will try to get access to restricted page or post – it will
be redirected to WordPress Login page first.
 Or you can specify the exact URL (
internal or external) to redirect anonymous users to.

After successful authorization, user is redirected back to the requested page.

Also, it hides restricted posts from Archive and Categories pages, RSS feed and 
from Latest Comments/Posts widgets!

## 螢幕擷圖

 * [[
 * Restrict access to any post for not logged-in users.
 * [[
 * Hide any page from public access.
 * [[
 * Not logged-in users are redirected to Login screen in case of trying access restricted
   content.
 * [[
 * Admin settings page
 * [[
 * Custom URL to redirect anonymous users
 * [[
 * Bulk restrict feature
 * [[
 * Alternative AJAX login screen

## 安裝方式

 1. Upload `anonymous-restricted-content` folder into the `/wp-content/plugins/` directory
    or use automatic WP Plugin Installer.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. All done, you can start using it!

## 常見問題集

### How to hide post/page from public access?

Go to post/page edit screen in WP Admin, and switch ON checkbox for “Restricted 
for anonymous users”. You can find it in the sidebar, under Document -> Status &
Visibility.

### I set post to restricted, but it’s still visible?!

It usually happens when you forget to press Update button.

### I’m not idiot, and I saved my post but it’s still visible?!

Please, use this url to submit support ticket: https://wordpress.org/support/plugin/
anonymous-restricted-content/

### What happens to users who are restricted ?

You can redirect them to any url you need or to the default WP login screen.

### Can I change redirect URL ?

Yes, you can find this option under Settings -> Restricted Content -> Redirect Options.

### Can I set custom notification message for users who was restricted ?

Yes, look at Settings -> Restricted Content -> Login Screen Message.

### All restricted options are reset after plugin re-install. What’s going on?

We strictly care about your database size, and clean up all the data created by 
this plugin during its lifetime when plugin is uninstalled.

### What about categories?

Unfortunately, we refused to support this feature in latest version, cause to changes
in WP which made it nearly impossible to do.

## 使用者評論

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

### 󠀁[Simple and functional](https://wordpress.org/support/topic/simple-and-functional-122/)󠁿

 [douggeeks](https://profiles.wordpress.org/douggeeks/) 2021 年 8 月 6 日

Works as advertised. A very simple and elegant solution. I hope the developer would
consider adding the ability to restrict by content tag or category, thus allowing
tiered membership options. Cheers

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

### 󠀁[Simple and good](https://wordpress.org/support/topic/simple-and-good-139/)󠁿

 [befree20](https://profiles.wordpress.org/befree20/) 2021 年 8 月 5 日 1 則留言

Simple and really good plugin.

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

### 󠀁[Super-simple and does what it promises](https://wordpress.org/support/topic/super-simple-and-does-what-it-promises/)󠁿

 [braunsch](https://profiles.wordpress.org/braunsch/) 2021 年 2 月 22 日

After initial issues (this did not work when you weren’t using standard WordPress
login pages), and excellent support from the developer, this now does what it promises
to do – in a way as elegant and simple that it is without competition. A simple 
checkbox on the post – and the post is hidden to users who aren’t logged in. People
with a direct link to the post now can get a login popup – and if they have a user
ID and password, they can see the post. Exactly what I needed.

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

### 󠀁[Does what it needs to](https://wordpress.org/support/topic/bad-interaction-with-yoast-seo-and-no-answer-from-support/)󠁿

 [Tyler Tork](https://profiles.wordpress.org/tylertork/) 2020 年 7 月 31 日 4 則
留言

This is simple enough to use and accomplishes the task. You can protect attachments,
which was key for me. Support was slow.

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

### 󠀁[Did not work.](https://wordpress.org/support/topic/did-not-work-129/)󠁿

 [aptharsia](https://profiles.wordpress.org/aptharsia/) 2020 年 4 月 11 日 1 則留言

No option under the category to hide from anyone. Waste of time.

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

### 󠀁[Great but it stopped Yoast from working](https://wordpress.org/support/topic/great-but-it-stopped-yoast-from-working/)󠁿

 [garybultitude](https://profiles.wordpress.org/garybultitude/) 2020 年 3 月 5 日
1 則留言

For some reason, this plugin stopped Yoast from working. Shame because its an awesome
plugin

 [ 閱讀全部 9 則使用者評論 ](https://wordpress.org/support/plugin/anonymous-restricted-content/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Anonymous Restricted Content〉的開發相關工作。

參與者

 *   [ taras.sych ](https://profiles.wordpress.org/cayenne/)

[將〈Anonymous Restricted Content〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/anonymous-restricted-content)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/anonymous-restricted-content/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/anonymous-restricted-content/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/anonymous-restricted-content/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/anonymous-restricted-content/)。

## 變更記錄

#### 1.6.6

 * Sensitive Information Exposure vulnerability fixed

#### 1.6.5

 * Fixed bug with access to restricted content for authorized users via REST API

#### 1.6.4

 * Fixed issue with restricted content in REST API

#### 1.6.3

 * Fixed issue with posts listing

#### 1.6.2

 * Restricted content in REST API

#### 1.6.1

 * Tested up to WP 6.2.2

#### 1.6

 * Compatibility errors
 * Tested up to WP 6.2

#### 1.5.5

 * Added support to be restricted by category and tag – PRO
 * Fixed error display on settings page
 * Tested up to WP 6.0

#### 1.5.4

 * fixed issue with AJAX login screen on mobile

#### 1.5.3

 * JS scripts included into translations
 * Tested up to WP 5.7

#### 1.5.2

 * Started work on plugin translation
 * Added Deutch and Ukrainian languages

#### 1.5.1

 * Added “Go Back” button on AJAX login screen
 * Minor typo and styling fixes

#### 1.5.0

 * AJAX login screen

#### 1.4.1

 * Added timecode to redirect urls to prevent caching issues

#### 1.4.0

 * Bulk restriction. Restriction status in Posts/Pages list.
 * Tested with brand new WP 5.5

#### 1.3.2

 * Resolved issue with Classic Editor and Yoast plugins compatibility.

#### 1.3.1

 * Fixed problem with “Undefined variable: is_content_restricted …”, my apologies
   about it!

#### 1.3

 * Stopped supporting restricted categories!
 * Restricted pages are hidden from default primary menu.
 * New, customizable message for users who forced to login screen.
 * More efficient restriction function to cover even more cases.
 * Speed and coding optimisation.

#### 1.2.3

 * Added Redirect URL option to Settings page

#### 1.2.0

 * WordPress 5.2 Compatible
 * Restricted posts hidden in archive
 * Restricted posts hidden in Latest Posts widget
 * Comments to restricted posts hidden in Latest Comments Widget
 * Restricted posts hidden in Rss Feed

#### 1.1.2

 * Minor fixes related to Gutenberg editor

#### 1.1.1

 * Gutenberg compatibility

#### 1.0.1

 * WordPress 5.0 compatibility

#### 1.0

 * Added Restricted categories
 * More efficient restricted options processing
 * Prepared plugin to be uploaded to WordPress.org storage

#### 0.5

 * First version of plugin with just basic functions

## 中繼資料

 *  版本 **1.6.6**
 *  最後更新 **2 年前**
 *  啟用安裝數 **1,000+**
 *  WordPress 版本需求 ** 5.3 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  語言
 * [English (US)](https://wordpress.org/plugins/anonymous-restricted-content/)
 * 標籤:
 * [access-control](https://tw.wordpress.org/plugins/tags/access-control/)[content control](https://tw.wordpress.org/plugins/tags/content-control/)
   [hide content](https://tw.wordpress.org/plugins/tags/hide-content/)[restricted access](https://tw.wordpress.org/plugins/tags/restricted-access/)
 *  [進階檢視](https://tw.wordpress.org/plugins/anonymous-restricted-content/advanced/)

## 評分

 4.3 星，滿分為 5 星

 *  [  6 個 5 星使用者評論     ](https://wordpress.org/support/plugin/anonymous-restricted-content/reviews/?filter=5)
 *  [  2 個 4 星使用者評論     ](https://wordpress.org/support/plugin/anonymous-restricted-content/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/anonymous-restricted-content/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/anonymous-restricted-content/reviews/?filter=2)
 *  [  1 個 1 星使用者評論     ](https://wordpress.org/support/plugin/anonymous-restricted-content/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/anonymous-restricted-content/reviews/)

## 參與者

 *   [ taras.sych ](https://profiles.wordpress.org/cayenne/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/anonymous-restricted-content/)