Restricting Site Access by IP With Statamic V2

One of the first things I do with my client staging site is to restrict them with a WordPress plugin called Restricted Site Access. This lets me allow by IP address who can see the site without logging in. That way clients can see the site while we test it without the world seeing it or messing with their SEO because of duplicate content.

Today we’re going to restrict access to our demo Statamic site by IP address to duplicate that functionality from WordPress.

Since the docs on the Statamic site are currently wrong you can see the proper version of the yaml syntax below.

  type: ip_address

This code goes in site/settings/system.yaml

To get a head start, join thousands of other men and Stop The Struggle.Get my free eBook to help you stop working all the hours without traction.

You’ll also get a weekly email with good resources to help you do family with the same intention you do your work. Both need to run well if you want to win.