WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Restricted Site Access

Limit access to visitors who are logged in or allowed by IP addresses. Includes many options for handling blocked visitors.

How do I unrestrict specific pages or parts of my site?

Developers can use the restricted_site_access_is_restricted filter to override Restricted Site Access. Note that the restriction checks happens before WordPress executes any queries, so use the global $wp variable to investigate what the visitor is trying to load.

For instance, to unblock an RSS feed, place the following PHP code in the theme's functions.php file or in a simple plug-in:

add_filter( 'restricted_site_access_is_restricted', 'my_rsa_feed_override' );

function my_rsa_feed_override( $is_restricted ) {
    global $wp;
    // check query variables to see if this is the feed
    if ( ! empty( $wp->query_vars['feed'] ) )
        $is_restricted = false;

    return $is_restricted;
}

How secure is this plug-in?

Users that are not logged in or allowed by IP address will not be able to browse your site. Restricted Site Access does not block access to your "real" files, so direct links to files in your uploads folder (for instance) are not blocked. It is also important to remember that IP addresses can be spoofed by hackers. Because Restricted Site Access runs as a plug-in, it is subject to any WordPress vulnerabilities.

Restricted Site Access is not meant to be a top secret data safe, but simply a reliable and convenient way to handle unwanted visitors.

Requires: 3.4 or higher
Compatible up to: 3.5.2
Last Updated: 2013-1-27
Downloads: 67,848

Ratings

4 stars
4.9 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1
100,2,2
100,2,2 100,3,3 100,2,2 100,2,2 0,1,0
100,5,5 100,1,1
100,1,1
100,1,1 100,2,2
100,1,1 100,3,3
100,1,1
0,1,0
100,3,3
100,1,1
100,2,2
100,3,3
50,2,1 100,3,3
100,2,2 100,1,1
86,7,6
100,1,1
100,1,1
0,1,0
100,1,1
100,1,1