Title: Restrict Anonymous Access
Author: Christian Leuenberg
Published: <strong>2017-يىلى 9-ئىيۇن</strong>
Last modified: 2025-يىلى 21-يانۋار

---

قىستۇرما ئىزدە

![](https://ps.w.org/restrict-anonymous-access/assets/banner-772x250.png?rev=2312263)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/restrict-anonymous-access/assets/icon-256x256.png?rev=2312263)

# Restrict Anonymous Access

 يازغۇچى [Christian Leuenberg](https://profiles.wordpress.org/cleuenberg/)

[چۈشۈر](https://downloads.wordpress.org/plugin/restrict-anonymous-access.1.2.1.zip)

 * [تەپسىلاتلار](https://ug.wordpress.org/plugins/restrict-anonymous-access/#description)
 * [باھالاشلار](https://ug.wordpress.org/plugins/restrict-anonymous-access/#reviews)
 *  [ئورنىتىش](https://ug.wordpress.org/plugins/restrict-anonymous-access/#installation)
 * [ئىجادىيەت](https://ug.wordpress.org/plugins/restrict-anonymous-access/#developers)

 [قوللاش](https://wordpress.org/support/plugin/restrict-anonymous-access/)

## چۈشەندۈرۈش

This plugin helps you to hide certain parts of your content like a paragraph or 
an image etc. to logged-out users or users of any other role with just a simple 
shortcode.

Customize the shortcode in order to display a special note to your users, apply 
custom CSS classes for your own design or hide the restricted parts completely.

Features:

 * text within shortcode `[member][/member]` is not visible to anonymous users
 * hide content based on user roles (subscriber, contributor, author, editor, admin)
 * restricted text can be replaced with info text box
 * info text can be customized
 * comes with a handy TinyMCE button for quick access

## ئېكران كەسمىسى

[⌊Inserted the shortcode in WordPress content editor.⌉⌊Inserted the shortcode in
WordPress content editor.⌉[

Inserted the shortcode in WordPress content editor.

[⌊Front-end view with anonymous user, content is hidden and info message shown instead.⌉⌊
Front-end view with anonymous user, content is hidden and info message shown instead
.⌉[

Front-end view with anonymous user, content is hidden and info message shown instead.

[⌊Front-end view with logged-in user, content is shown.⌉⌊Front-end view with logged-
in user, content is shown.⌉[

Front-end view with logged-in user, content is shown.

## ئورنىتىش

 1. Upload the plugin files to the `/wp-content/plugins/restrict-anonymous-access` 
    directory, or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ›Plugins‹ screen in WordPress.
 3. Use the shortcode `[member][/member]` in any post, page or custom post type in 
    order to hide content from anonymous users. Important: Please use «Classic» block
    element if you are using Gutenberg.
 4. Optional parameters are `showinfo="0"` to hide the info message, `infotext="Your
    custom info for anons."` and `class="my-custom-css-class"` for adding CSS class
    to the info box.
 5. Use parameter `role="[subscriber|contributor|author|editor|admin|your-custom-role]"`,
    e.g. `role="editor"` to hide content from users below editor capabilities.

## باھالاشلار

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

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-8793/)󠁿

 [cryptoli](https://profiles.wordpress.org/cryptoli/) 2023-يىلى 26-ئاپرېل

Nice and lightweight, works great!

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

### 󠀁[Too awesome. Simple to use but complex results. +5 for Awesomeness](https://wordpress.org/support/topic/too-awesome-simple-to-use-but-complex-results/)󠁿

 [Thomas Rendleman](https://profiles.wordpress.org/thomasrendleman/) 2018-يىلى 12-
ئىيۇن

First I tried several plugins that are supposed to do the same thing. They did but
hard to use or changed content inside the shortcode. Just got tired of messing around
with it. I thought I could do an easy check on if the user was logged in and display
data if he was. Well that theory is easier said than done. This programmer did a
great job. Kept it simple but can give some quite complex results. Perfect and should
be allowed into core, IMHO. Keep up the good work. I’ll be using this in every website
I create.

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

### 󠀁[lightweight and not overloaded](https://wordpress.org/support/topic/lightweight-and-not-overloaded/)󠁿

 [fregatte](https://profiles.wordpress.org/fregatte/) 2017-يىلى 25-ئىيۇل

I quite like this plugin; does what it says; is lightweight and not overloaded; 
easy to handle; no integration in the menue structure but no need for it. I was 
exactly looking for something like that an I am not disappointed. Thanks! 5 Stars
from me! fregatte

 [ 3 باھالاشنىڭ ھەممىنى ئوقۇش ](https://wordpress.org/support/plugin/restrict-anonymous-access/reviews/)

## تۆھپىكار ۋە ئىجادكار

«Restrict Anonymous Access» كودى ئوچۇق يۇمشاق دېتال. تۆۋەندىكى كىشىلەر بۇ قىستۇرمىغا
تۆھپە قوشقان.

تۆھپىكار

 *   [ Christian Leuenberg ](https://profiles.wordpress.org/cleuenberg/)

[«Restrict Anonymous Access» نى تىلىڭىزغا تەرجىمە قىلىڭ](https://translate.wordpress.org/projects/wp-plugins/restrict-anonymous-access)

### ئىجادىيەتكە قىزىقامسىز؟

[كودقا كۆز يۈگۈرتۈپ](https://plugins.trac.wordpress.org/browser/restrict-anonymous-access/)،
[SVN خەزىنە](https://plugins.svn.wordpress.org/restrict-anonymous-access/) تەكشۈرۈپ
ياكى [RSS](https://plugins.trac.wordpress.org/log/restrict-anonymous-access/?limit=100&mode=stop_on_copy&format=rss)
ئارقىلىق [ئىجادىيەت خاتىرىسى](https://plugins.trac.wordpress.org/log/restrict-anonymous-access/)
گە مۇشتەرى بولغىلى بولىدۇ.

## ئۆزگىرىش خاتىرىسى

#### 1.2.1

 * Fixed vulnerability to Cross Site Scripting (XSS).
 * Tested with WordPress 5.7.1.

#### 1.2

 * Added compatibility to custom user roles.
 * Added HTML support for infotext parameter.

#### 1.1

 * Added optional user role based content restriction.

#### 1.0.3

 * Tested with WordPress 4.8.
 * Fixed: Text output with paragraph tag (wpautop).

#### 1.0.2

 * Initial release for WordPress plugin directory.

## Meta

 *  Version **1.2.1**
 *  ئاخىرقى يېڭىلانغان ۋاقىت **1 يىل بۇرۇن**
 *  ئاكتىپ ئورنىتىش سانى **80+**
 *  **6.7.5** دا سىنالغان
 *  تىل
 * [English (US)](https://wordpress.org/plugins/restrict-anonymous-access/)
 * بەلگە
 * [access-control](https://ug.wordpress.org/plugins/tags/access-control/)[capabilities](https://ug.wordpress.org/plugins/tags/capabilities/)
   [restrict content](https://ug.wordpress.org/plugins/tags/restrict-content/)[User Access](https://ug.wordpress.org/plugins/tags/user-access/)
 *  [ئالىي كۆرۈنۈش](https://ug.wordpress.org/plugins/restrict-anonymous-access/advanced/)

## دەرىجە

 5/5 يۇلتۇز

 *  [  3 5-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/restrict-anonymous-access/reviews/?filter=5)
 *  [  0 4-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/restrict-anonymous-access/reviews/?filter=4)
 *  [  0 3-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/restrict-anonymous-access/reviews/?filter=3)
 *  [  0 2-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/restrict-anonymous-access/reviews/?filter=2)
 *  [  0 1-يۇلتۇز باھالاش     ](https://wordpress.org/support/plugin/restrict-anonymous-access/reviews/?filter=1)

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

[بارلىق ئىنكاسنى كۆرسەت](https://wordpress.org/support/plugin/restrict-anonymous-access/reviews/)

## تۆھپىكار

 *   [ Christian Leuenberg ](https://profiles.wordpress.org/cleuenberg/)

## قوللاش

چۈشەندۈرۈشىڭىز بارمۇ؟ ياردەم لازىممۇ؟

 [قوللاش مۇنبىرىنى كۆرسەت](https://wordpress.org/support/plugin/restrict-anonymous-access/)

## ئىئانە

بۇ قىستۇرمىنىڭ ياخشىلىنىشىنى قوللامسىز؟

 [ بۇ قىستۇرمىغا ئىئانە قىلىش ](https://paypal.me/Lnet)