Restricted Site Access 5.0.1 for WordPress
Restrict access to registered users and specific IP addresses. Control restriction behavior.
Limit access your site to visitors who are logged in or accessing the site from a set of specific IP addresses. Send restricted visitors to the log in page, redirect them, or display a message. A great solution for Extranets, publicly hosted Intranets, or parallel development sites.
Adds a number of new configuration options to the Privacy settings panel. From this panel you can:
- Enable and disable access restriction at will
- Change the restriction behavior: send to login, redirect, or display a message.
- Add IP addresses not subject to restriction, including ranges.
- Quickly add your current IP to the restriction list.
- Control the redirect location.
- Choose to redirect visitors to the same path that they entered the current site on
- Choose the HTTP redirect message for SEO friendliness
- Customize the blocked visitor message.
Thanks to Eric Buth for adding IP range support to the code base!



Is there a way to override the blocking of the website on the registration page I have created?
I want users to be able to see this page, create accounts and see content.
Excellent work; very user-friendly but still configuratively robust. It’s better supported and more current than the existing plugin alternatives. Also, regarding the 10up website itself, well done on a pretty responsive design.
hello
Your plugin seems to be what I am looking for, BUT:
I would like to have few pages accessible as teaser or to contact me.
With the current option, it’s a general redirect to only one page.
Or in other words: each page should have the option to restrict or not.
Cheers
Reto Leimgruber
Right, this plug-in isn’t meant to be a selective public / private tool, just a global blocking solution. HOWEVER, there is a filter that lets you catch and override the restriction based on any criteria (like the current page ID).
How do I re-direct users to a specified URL after they log in?
Thanks!
Joe
You find a different plug-in that does that.
Hi, the IP range function doesn’t works for me.
Bst regards!
Elaborate?
How do you leave a page open for people to register. I found some code for rss feed but I can’t get it to leave a page open for me. Someone HELP, please.
The only way is to use the hook in the plug-in that checks for whether a page should be restricted.
as I have confidential media I need to have also the access to the media restricted. I found the media can be accessed (if I have the URL) even if not logged in.
Is there a chance of having the media alos restrictedly accessable?
It’s something we’re looking at adding in the future, but adds significant complexity (and website overhead) to the plug-in. At the moment, there’s no way to do that.
I’d love to hear your thoughts on this. I’ve currently developed a solution for my companies intranet site and as you say there is a lot of overhead.
By the way great plugin!
The only truly secure way to prevent non-script files (e.g. images, PDFs, etc) from being linked to directly is to block their folder from public web access and “stream” the documents via PHP (there are several ways to handle rerouting media links through PHP). Streaming is extremely resource intensive as everything is pushed through PHP – large documents (say, a 10mb PDF) can be killer, especially with concurrent downloads. If someone has another approach, I’m all ears!
Thank you so much for this plugin! Is there a way to use it to limit the login to only one session per username?
I appreciate your help.
Nope. It uses WordPress’s standard way of authenticating, which isn’t something I want this plug-in to modify.
Hi Jake…thanks for this easy to use plugin. It is very helpful and allowed me to resolve the need for a registration landing page easily while keeping my wootheme custom homepage setup. A couple of things I noticed:
1. When I access the site via mobile the plugin does not divert to the assigned page. I am not using a special mobile version of the site as it is a responsive theme and automatically sizes for mobile. Nor am I using an app for mobile.
2. I really like the unrestricted access option…another thought here is a setting that allows registered users to bypass the redirect.
3. Regarding site visibility…when I select restrict to logged in visitors…does this block the search engines from indexing the site? It’s like there are three choices, encourage, discourage and logged in user.
Regards,
Will
1. The plug-in doesn’t care where the viewer is coming from, so *something* in your stack is doing more than responsive design / media queries.
2. I don’t follow. Logged in users aren’t redirected.
3. Yes it blocks search engine. It has to! You have to be logged in to see your content!
Hi
I have tried the plugin again and now it works as it is meant to. I know have a different problem which is that even when trying to access the RSS feed from an unrestricted IP address I get directed to the login. Something doesn’t seem quite right with this behaviour. Any ideas? You mention this as a method but in all honesty my knowledge is not sufficient to use the instruction to do what I want:
‘The only way is to use the hook in the plug-in that checks for whether a page should be restricted.’
thanks for your help
is it not possible to open it up but only to those accessing it from the unrestricted IP addresses?
I can provide a work around, but keep in mind it will open up your feed to the public!
I set up my whole site with the purpose of restricting access to logged in members only. Once logged in, they can subscribe to the feed and received it to their email. BUT, since the site is restricted, so is the feed. Same problem as above. Please advise if there is a work-around as I have already announced and set up this whole process with many members, only to figure out that it won’t work. Other than that, its a great plug-in!!