How to restrict access by IPs on your Squarespace Site?
When you search for the solution to this the top result is from Squarespace themselves. A page that links to a years old version of squarespace that allowed for IP blocking. But that is the past and they never updated.
It looks a little while and realizing there wasn’t a simple solution. I discovered the answer in the squarespace forums on a post from 2020.
I’m running a campaign and despite limiting it to my local area I am receiving hits from everywhere around the country and world that I should not be.
Sign up for a free Cloudflare account. Add your site.
Change the nameservers to the cloudflare nameservers at your domain registrar. If you didn’t buy your domain from Squarespace, find out what service you did possibly GoDaddy or Namecheap.
After your site is verified you can access your Cloudflare dashboard and choose “Security” from the left hand menu.
Select “Create a Firewall Rule” and do what you have to do.
You may have an issue where your site briefly goes down due to, too many redirects. To stop that from happening, select the SSL/TLS tab in Cloudflare and change your encryption mode to Full (Strict).