Geoblocking site from specific countries

Hi there. Does anyone know a (free) way to block a country from accessing a webflow site or page? (Using Google domains).
I’m not worried about VPNs or anything - a basic solution is fine.

Thanks!!

(Reason = we’re a NGO working in sensitive locations, so websites can be compromising.)

If you require country level blocking you need to host the site yourself and implement blocking on your web server or a cloud config. Webflow does not offer this with its hosting plans.

Hi there! It’s worth checking out the service: GEO Targetly.

It can identify visitors’ physical locations by IP using IP geolocation technologies.

Its particular tool, GEO blocking can automatically block visitors from certain regions, like country, state, and city, and prevent unwanted visitors browsing your website. For example, blocked visitors could be redirect to the url: examplesite.com - This website is for sale! - example site Resources and Information..

The tool is easy to set. No coding is necessary.

GEO Targetly provides service package for small business owners and NGOs. Stable, and very reliable.

Hope it helps!

1 Like

this is amazing thank you!!

Hey there :wave:t2:!

This is actually a pretty common request we’ve handled for many of our Webflow clients. The easiest and most cost-effective way to implement geo-blocking is by using Cloudflare’s Web Application Firewall (WAF) :lock:. It has a very generous free plan, is super easy to set up, and runs on one of the best web infrastructures out there.

Here’s a quick overview of the process :point_down:t2::

  1. :cloud: Create a Cloudflare account: Sign up at cloudflare.com if you haven’t already.

  2. :earth_americas: Add your domain to Cloudflare: Enter your domain name and Cloudflare will scan your existing DNS records.

  3. :globe_with_meridians: Update your nameservers: Change your domain’s nameservers to the ones Cloudflare provides. This step is done at your domain registrar (GoDaddy, NameCheap, etc).

  4. :lock: Configure SSL settings: Set up Full (strict) SSL mode in Cloudflare to ensure a secure connection and full DNS handling by Cloudflare. Remember to set up the rule exception to allow the SSL handshake between Webflow and Cloudflare.

  5. Create a WAF rule: In the Cloudflare dashboard, set up a rule to block traffic from specific countries. For example:
    — If Country equals “Russian Federation”, then Block
    — If Country equals “China” AND IP Address Range is 203.0.113.0/24, then Block

The whole process is straightforward, but if you want a detailed, step-by-step guide, we’ve actually written about it in this article. It covers everything from initial Cloudflare setup to creating and fine-tuning your geo-blocking rules.

One thing to keep in mind: while this method is effective for most users, it won’t stop determined users with VPNs (Even Netflix is not able to stop them lol :sweat_smile:). But for general geo-blocking purposes, it works great.

Let me know if you have any questions about the process. If you need more advanced assistance, please feel free to send a message our Webflow development agency — Will be happy to help.

Hi Mauro. ive hit a snag with this process. as I have setup my domain with the applicable webflow Nameservers on my domain which was / is working fine. when I update my dns to include Cloudflair my site loads only to tell me " site not loading, too many redirects" and this is the info I get from my host provider . ""I believe this is occurring due to you having 2 different proxies enabled (Webflow and now Cloudflare).

This isn’t something we can assist with on our end.

You may need to get in touch with Webflow for further assistance here - the hosting for samii.au isnt with us, so there’s nothing we can really do on our end.

Hope this clears things up for you.

Let us know if you have any further issues, questions or queries!

Regards,

Jacob Borg
Technical Support Analyst""

to you have any solution to this ? there are 3 products invalid now. 1- Synergywholesale is where the domain lives. 2- Webflow. 3 - and now cloudflare, simply trying to Geo block. my site wend down during an attempt to follow this process.

anyone ?

This might help!

Please feel free to tag me if you have any questions!

Happy Thursday!