Limit access to visitors who are logged in or at specific IP addresses. Many options for handling blocked visitors. Great for Intranets, dev sites.
Developers can use the restricted_site_access_is_restricted filter to override Restricted Site Access. Note that the restriction checks runs 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;
}
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 general 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.2 or higher
Compatible up to: 3.2.1
Last Updated: 2011-3-25
Downloads: 22,834
0 of 1 support threads in the last three weeks have been resolved.
Got something to say? Need help?