How to Block IP By Country and Allow Uptime Monitor
In this guide, we will walk you through the steps to block traffic from specific countries using Cloudflare while allowing access to your uptime monitor IPs. We will cover how to achieve this both in Cloudflare’s Firewall Rules and on an Apache web server.
Cloudflare Firewall Rules
Step 1: Log in to Cloudflare
- Go to Cloudflare and log in to your account.
Step 2: Access Firewall Rules
-
In the Cloudflare dashboard, click on your domain.
-
Navigate to the “Firewall” section in the top menu and then click on “Firewall Rules.”