Jake Goldman by Jake Goldman download
requires 3.4+
40 votes
41,870 downloads
updated Jan 27 '13

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:

Thanks to Eric Buth for adding IP range support to the code base!

  1. restricted-site-access screenshot 1

    Screenshot of settings panel (WP 3.5) with simple Restricted Site Access option (send to login page).

  2. restricted-site-access screenshot 2

    Screenshot of settings panel (WP 3.5) with restriction message option enabled

  3. restricted-site-access screenshot 3

    Plenty of inline help! Looks and behaves like native WordPress help.

85 Replies

  1. 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.

    NickJanuary 31, 2013 at 4:59 pmReply
  2. 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.

    Dominor NovusFebruary 3, 2013 at 11:39 amReply
  3. 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

    Reto LeimgruberFebruary 19, 2013 at 6:23 pmReply
    • Jake Goldman

      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).

      Jake GoldmanFebruary 23, 2013 at 12:25 amReply
  4. How do I re-direct users to a specified URL after they log in?

    Thanks!
    Joe

    Joe KarnsMarch 27, 2013 at 12:45 amReply
    • Jake Goldman

      You find a different plug-in that does that. :-)

      Jake GoldmanApril 8, 2013 at 6:22 pmReply
  5. Hi, the IP range function doesn’t works for me.
    Bst regards!

    J MercedMarch 29, 2013 at 6:38 pmReply
    • Jake Goldman

      Elaborate?

      Jake GoldmanApril 8, 2013 at 6:21 pmReply
  6. 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.

    mikeApril 1, 2013 at 3:51 pmReply
    • Jake Goldman

      The only way is to use the hook in the plug-in that checks for whether a page should be restricted.

      Jake GoldmanApril 8, 2013 at 6:21 pmReply
  7. 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?

    NorbertApril 2, 2013 at 5:48 amReply
    • Jake Goldman

      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.

      Jake GoldmanApril 8, 2013 at 6:20 pmReply
      • 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!

        Cole WelsomeApril 12, 2013 at 12:26 pmReply
        • Jake Goldman

          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!

          Jake GoldmanApril 12, 2013 at 12:57 pmReply
  8. 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.

    Andres MendezApril 14, 2013 at 8:04 pmReply
    • Jake Goldman

      Nope. It uses WordPress’s standard way of authenticating, which isn’t something I want this plug-in to modify.

      Jake Goldman8 days agoReply
  9. 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

    WillApril 24, 2013 at 1:55 pmReply
    • Jake Goldman

      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!

      Jake Goldman8 days agoReply
  10. 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

    RobinMay 1, 2013 at 11:26 amReply
  11. is it not possible to open it up but only to those accessing it from the unrestricted IP addresses?

    RobinMay 2, 2013 at 9:28 amReply
  12. Jake Goldman

    I can provide a work around, but keep in mind it will open up your feed to the public!

    Jake GoldmanJuly 14, 2011 at 12:54 pmReply
  13. 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!!

    Kristin MooreJuly 10, 2011 at 1:56 pmReply
Older Comments

Leave a Reply