Drewcifer Posted June 27, 2020 Posted June 27, 2020 Does any one know a quick and easy way to geo restrict my squarespace website so that I can prohibit access to it from a specific country or even to allow access only from my own country? And do so inexpensively?
Solution paul2009 Posted June 28, 2020 Solution Posted June 28, 2020 It will depend on why you need it and what you hope to achieve. In short, there isn't a true "geo-blocking" solution that you can apply to Squarespace 6 or later. There are some workarounds, but they cannot truly block all access to your site, at least not in the security sense of the term. For example, you could try to prevent users reaching your website via its primary domain name but you could not prevent them from reaching it via the built in .squarespace.com domain. For this reason, if you are trying to stop a country accessing your site because of potential hacking or dDOS attacks, you should rely on Squarespace's extensive built-in security measures. You cannot add to them. However, if your product licensing agreement restricts you from advertising your products in a particular country and you simply want to stop people in that country from stumbling upon your site, there may be options that can help. Please note that none of these are supported by Squarespace, so if you get into difficulties, you'll be on your own. Also, bear in mind that most workarounds will be bypassed by visitors who are using an out-of-country VPN service. The most effective option is to use a third party proxy service. There are some free plans with a limited number of rules but if these don't meet your needs you need to purchase additional services to. Note that this will require you to modify your DNS settings so that all web traffic is sent to the proxy service first. Another option is to purchase a third-party geo service that will supply code you can add to your website's code injection header. These services will also charge on an ongoing basis to provide their service. Finally, you could hire a developer to write some specific code for your site, but as internet topology changes every day, this will need to rely on one of the IP address services (option 2 above) or it will become out of date quickly. Alexander1994 and MoeTalks 2 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Drewcifer Posted June 28, 2020 Author Posted June 28, 2020 SOLVED... Paul, thanks for the response. In a different, related, post you mentioned Cloudfare.com and after you replied to this post, though you hadn't mentioned it again, I decided to give Cloudfare a shot. For anyone else who wants to Block Countries in Squarespace this is what I did... 1. I started a FREE Cloudfare account and added my Squarespace website. I had to change the Name Server on Squarespace to complete the process. 2. To do that I went to my Squarespace website then Settings, Domains, clicked on the gray box with my website URL, clicked on the gray box that says Advanced Settings, at the top of Advanced Settings I clicked on Nameservers, clicked the radial button that says Use Custom Name Servers and added the two URL's that were provided to me during my registration process with Cloudfare. 3. Cloudfare verified the change within minutes and from the Cloudfare website I selected the tab Firewall, then clicked + Create Firewall Rule. 4. The rest should be pretty self explanatory depending on what you specifically want to do (restrict, allow, etc...). Hit Deploy 5. Using a VPN I attempted to access my site from my restricted country and Voila, I couldn't reach it. I am considering changing the appearance of the error page, but to do so I will have to upgrade to the $20/mo subscription, which I may or may not do. I hope this helps anyone else wanting to do the same thing. I am the end user of my website and not a developer so I spent a lot of time looking into this and I am quite happy that after 2 weeks of research that it is done, and done for FREEEE! Sparkles, cristinabarata, LostBoy and 3 others 4 1 1
Guest Posted December 16, 2020 Posted December 16, 2020 Hi Drewcifer, Thanks for your prompt resolve message. I would like to know that your country restriction still working good with the cloudfare? Also, i would like to know that your blocked page is not showing in Google search result ? You got any crawl or index issues in the Google search console? Please reply to help me on the blocking of a page to the specific country. I am also trying to block a /folder/ from my website to specific country to not see. If i do a block the/folder/ to specific country (for example: going to block all countries except India) using my hosting provider or may use cloudfare, is the Google will still crawl and index my /folder/ in SERP for all country users? or only for India users ? Please help to clarify. thanks in advance.
TimF303 Posted January 1, 2021 Posted January 1, 2021 If your Squarespace site uses AWS Route 53 for DNS and AWS CloudFront as Content Delivery, use this help article to apply restrictions using Whitelist or Blacklist. https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/georestrictions.html
LostBoy Posted December 28, 2021 Posted December 28, 2021 really unfortunate... CloudFlare must have figured out people were doing this and have made this a "enterprise plan" feature only since july 2021. c'est la vie... hopes this saves someone the trouble. Beyondspace 1
Zuzu12 Posted August 10, 2023 Posted August 10, 2023 Actually this is still available for free. It's under "security" tab, and "WAF". The rest is as @Drewcifer described. Juddhopes and Beyondspace 2
Beyondspace Posted July 23 Posted July 23 On 8/11/2023 at 3:19 AM, Zuzu12 said: Actually this is still available for free. It's under "security" tab, and "WAF". The rest is as @Drewcifer described. Hi Folks, what are your DNS records on Cloudflare look like? are all of them have to be DNS-only like Squarespace suggest https://support.squarespace.com/hc/en-us/articles/213469948-Using-Cloudflare-with-Squarespace Or only the verify records need to be DNS-only, the others can be Proxied https://developers.cloudflare.com/dns/manage-dns-records/reference/vendor-specific-records/#squarespace It worked for me this way, and I can use all the feature from Cloudflare such as Worker and Geo blocking, just want to confirm there is no potential error BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment