IP Restrictions

Hi,

Is there a way to have a page ip restricted, so that if it is on the list, it gets the page, other wise it is served a pre-defined page.

Thanks

No built-in way. You could write a plugin, but you could also put twig in the page itself to check _SERVER['REMOTE_ADDR'] and redirect as necessary. IP screening is really best at the server level, though.

For IPv4 addresses, here’s some code to check that an IP address is in a given range.