Introduction
Have you noticed a suspicious spike in traffic from a particular region of the world?
Is your website accessible in countries not targeted by your business?
With Fasterize's Firewall application, you can block access to your site based on the country of origin of visitors, in just a few clicks.
Let's take a look at how to set up targeted geographic blocking via the interface.
Why block access to certain countries?
Filtering by country allows you to:
- 🔒 Secure a sensitive environment (pre-production, admin, testing)
- ⚖️ Comply with legal or contractual restrictions (e.g., embargoes)
- 🛡️ Reduce attacks or abuse originating from certain areas
💡 Example: Are you receiving massive requests from a country outside your market area? Block it to preserve your resources.
How does country filtering work in Fasterize?
- The country of origin is automatically detected fromthe visitor'sIP address.
- Blocking takes place at the edge, before the request reaches your servers.
- The configuration can be accessed from the "Country" tab in the Firewall application.
💡 No development required: everything is done from the interface.
Block one or more countries via the interface
Here are the steps to create a country-based blocking rule:
Steps:
- Open the Firewall application
- Go to the Countries tab
- Click New Access Rule
- Give it a descriptive name (e.g., "Block Russia + China").
- Select the countries to block from the list
- Enable the rule
- Click Save
💡 Tip: You can select multiple countries to block an entire region (e.g., Eastern Europe, Southeast Asia, etc.).
Best practices and precautions
- 👁️ First, check the actual traffic from the target countries (via your logs or analytics tool).
- 🧠 Clearly name your rules to make them easier to manage over time.
⚠️ Warning: some cloud services (CDN, proxy, API) may have IP addresses located in unexpected countries.
Conclusion
Country blocking is a powerful and easy-to-use feature in Fasterize.
It allows you to restrict access to your site on a geographic basis, whether for security, compliance, or performance reasons.
⚠️ Don't forget to save your rule once you've created it so that it becomes active.
.png)