Support » Plugin: Restricted Site Access » Could be a little more flexible

  • The only plugin I’ve found that allows access based on an IP address whitelist. Does it’s job simply and well!

    But currently the plug in is all or nothing. You either have access to one page or the whole site. It would be great if there was an option to allow visitors to see a few individual pages (e.g. Contact, or About).

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jake Goldman


    I don’t want to expand the plugins built in options / complexity, but this is very doable (for developers) by using the restricted_site_access_is_restricted filter, which passing the initial request ($wp) along with it. You can check $wp for the page ID (or other properties) and override the default restriction behavior accordingly.

    It would be relatively simple to make a plugin that extends this one and adds a “Don’t restrict” option to individual posts and pages… I just don’t think it belongs in the lightweight core plugin.

    Fair enough – it’s yours 😉

    It’s a very niche use case – I’ve only ever had the one site that wanted to limit access by IP address – and I was able to get it done. If it ever comes up again I might try to learn enough PHP to add the flexibility…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Could be a little more flexible’ is closed to new replies.