Restricted Blocks

plugin banner

Restricted Blocks is a WordPress plugin that allows you to restrict access to specific Gutenberg…

Author:DAEXT (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.5
Plugin version:1.12
Added to WordPress repository:01-09-2021
Last updated:08-04-2024
Rating, %:100
Rated by:1
Plugin URI:
Total downloads:1 325
Active installs:100+
plugin download
Click to start download

Restricted Blocks is a WordPress plugin that allows you to restrict access to specific Gutenberg blocks based on a great variety of conditions.

You can, for example, restrict content based on the user role, conditionally display content based on the user device, make parts of the post unavailable to search engines, and more.

Pro Version

For professional users, we distribute a Pro Version of this plugin which includes additional types of restrictions.

Types of restrictions

This section will provide you details on the types of restrictions and the related usage examples.

Fixed

This restriction, when activated, removes a block from the front end.

Usage Examples

  • Temporarily hide existing or new sections of an article until they are ready to be published.

Password

The restricted content is displayed only after a successful password submission.

Usage Examples

  • Display private content only to members of a club, community, or to your friends.
  • Display downloadable material only to students of a class.

Device

This restriction allows you to display blocks based on the device of the user.

Usage Examples

  • Display complex layout elements only with desktop devices
  • Display different download links based on the device of the user

Time Range

With this restriction, you can display content at a specified time interval.

Usage Examples

  • Sell tickets in predetermined time intervals
  • Create a flash sale

Capability

This restriction uses the capabilities of the user to determine whether to display or not a specific block.

Usage Examples

  • Allow access to premium material only to specific user roles.

IP Address

This restriction allows you to display or hide blocks based on the IP address of the visitor.

Usage Examples

  • Prevent spam on contact forms or comments area
  • Prevent hacking attempts

Cookie

Use this restriction to display content based on the presence of specifics cookies.

Usage Examples

  • Hide or display interface elements based on the information available about the user
  • Display content only to logged user

HTTP Headers

With this restriction, you can display or hide content based on the information available in the HTTP headers.

Usage Examples

  • Hide content to specific bot or search engines
  • Conditionally display content based on the device of the user

Customizable Style

You can customize the colors and the typography of the elements displayed in the front-end with the 18 style options available in the back-end.

Technical Information

Plugin manual

Please see the plugin manual for more information on the plugin installation and usage.

Device detection

The device of the user is detected with the Mobile Detect PHP class.

Credits

This plugin makes use of the following resources:


Screenshots
ChangeLog