Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

IP Restrictions

Started by Muut Archive 10 years ago · 2 replies · 399 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 1359 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2955 9 years ago
Archive · by Muut Archive, 9 years ago
3 1121 9 years ago