Pantheon Community

Way to block IP addresses and Geo locations

Would love to be able to block IPs and locations from accessing my website. I know that I can do this with a WAF or a WP plugin, but would prefer to have an easy way to do this within the Pantheon dashboard.

We’re using CloudFlare and some custom PHP code to read geo-locations and block / redirect folks from specific countries and IP addresses. It seems to work pretty well. Would be good to have this as part of Pantheon though if you haven’t looked at CloudFlare, I recommend it.

We’ve used Amazon’s CloudFront for geo fencing a non-Pantheon site in the past. This was very easy to set up and the client stayed well within the free tier.