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
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.
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1354 | 9 years ago | ||
| 2 | 935 | 9 years ago | ||
| 2 | 4065 | 9 years ago | ||
| 1 | 2953 | 9 years ago | ||
| 3 | 1119 | 9 years ago |