Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

IP Restrictions

Started by Muut Archive 10 years ago · 2 replies · 479 views
10 years ago

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

10 years ago

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.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2288 9 years ago
Archive · by Muut Archive, 9 years ago
2 1501 9 years ago
Archive · by Muut Archive, 9 years ago
2 4753 9 years ago
Archive · by Muut Archive, 9 years ago
1 3570 9 years ago
Archive · by Muut Archive, 9 years ago
3 1627 9 years ago