Restrict Page By Role Security & Risk Analysis

wordpress.org/plugins/restrict-page-by-role

This WordPress plugin allows you to restrict access to the content of a page or post to which only certain group of users can access.

20 active installs v1.0.0 PHP + WP 3.9+ Updated Jul 29, 2016
block-page-by-user-groupprivate-pagerestricted-accessrestricted-page
85
A · Safe
CVEs total0
Unpatched0
Last CVENever
Download
Safety Verdict

Is Restrict Page By Role Safe to Use in 2026?

Generally Safe

Score 85/100

Restrict Page By Role has no known CVEs and is actively maintained. It's a solid choice for most WordPress installations.

No known CVEs Updated 9yr ago
Risk Assessment

The "restrict-page-by-role" plugin v1.0.0 exhibits a generally strong security posture based on the provided static analysis. The absence of any identified entry points, dangerous functions, SQL queries without prepared statements, file operations, or external HTTP requests is highly commendable and indicates robust secure coding practices. The presence of nonce and capability checks further strengthens its defenses, suggesting a proactive approach to preventing unauthorized actions. The vulnerability history is also a significant positive, with zero known CVEs indicating a history of stability and security. However, a notable concern lies in the output escaping, where only 25% of outputs are properly escaped. This could potentially lead to cross-site scripting (XSS) vulnerabilities if user-supplied data is reflected directly in the output without adequate sanitization, even though no direct flows were identified in the taint analysis. While the plugin appears secure in its current state, this area warrants attention for future development to ensure comprehensive protection.

Key Concerns

  • Low percentage of properly escaped output
Vulnerabilities
None known

Restrict Page By Role Security Vulnerabilities

No known vulnerabilities — this is a good sign.
Code Analysis
Analyzed Mar 16, 2026

Restrict Page By Role Code Analysis

Dangerous Functions
0
Raw SQL Queries
0
0 prepared
Unescaped Output
6
2 escaped
Nonce Checks
1
Capability Checks
6
File Operations
0
External Requests
0
Bundled Libraries
0

Output Escaping

25% escaped8 total outputs
Attack Surface

Restrict Page By Role Attack Surface

Entry Points0
Unprotected0
WordPress Hooks 8
actionplugins_loadedrestrict-page-by-role.php:48
actionadmin_enqueue_scriptsrestrict-page-by-role.php:51
actioninitrestrict-page-by-role.php:54
actionpost_submitbox_misc_actionsrestrict-page-by-role.php:58
actionsave_postrestrict-page-by-role.php:62
filterthe_contentrestrict-page-by-role.php:65
filterthe_titlerestrict-page-by-role.php:68
actionplugins_loadedrestrict-page-by-role.php:272
Maintenance & Trust

Restrict Page By Role Maintenance & Trust

Maintenance Signals

WordPress version tested4.5.33
Last updatedJul 29, 2016
PHP min version
Downloads3K

Community Trust

Rating70/100
Number of ratings2
Active installs20
Developer Profile

Restrict Page By Role Developer Profile

Leo Baiano

7 plugins · 840 total installs

85
trust score
Avg Security Score
87/100
Avg Patch Time
30 days
View full developer profile
Detection Fingerprints

How We Detect Restrict Page By Role

Patterns used to identify this plugin on WordPress sites during automated security audits and web crawling.

Asset Fingerprints

Asset Paths
/wp-content/plugins/restrict-page-by-role/assets/css/main.css/wp-content/plugins/restrict-page-by-role/assets/js/main.js

HTML / DOM Fingerprints

CSS Classes
lb-rpbr_restrict_accesslb-rpbr_box-select-rolelb-rpbr_select_role
Data Attributes
name="lb-rpbr_restrict_access"class="lb-rpbr_restrict_access"name="lb-rpbr_select_role_wpnonce"name="lb-rpbr_select_role"id="lb-rpbr_select_role"class="lb-rpbr_select_role"
JS Globals
data_baianada
FAQ

Frequently Asked Questions about Restrict Page By Role