Why is traffic from Singapore still reaching my site despite Cloudflare blocking it?
Asked by
MellowPine42
I use Cloudflare and configured it to block visitors from Singapore, including interactive challenges and Bot Fight Mode, but I'm still seeing traffic from there. The traffic appears to be affecting my AdSense account, which was suspended for five days. My site is hosted with Hostinger, and I'm testing Hostinger's CDN as well to see whether it can block the traffic more effectively, although I know running two CDNs is generally not recommended. Could the traffic be bypassing Cloudflare, or could it be bots using changing IP addresses? What's the best way to stop it?
Answers
First, make sure visitors cannot connect directly to your hosting server and bypass Cloudflare. Configure the origin firewall or web server to allow HTTP and HTTPS traffic only from Cloudflareโs published IP ranges. Also check that your DNS records do not expose the origin IP. If the origin is reachable directly, Cloudflareโs country blocks and bot protections can be bypassed completely.
Reply to this answer
Country-based IP blocking is not always reliable because bot traffic can come from constantly changing addresses, proxies, or compromised networks. It may help to review current abuse and threat-intelligence IP lists, then combine those blocks with firewall rules, rate limits, and bot challenges rather than relying only on a Singapore country rule.
Reply to this answer
Add your answer
Answers are reviewed before publication.
MellowPine42: How would I configure the server so that only Cloudflareโs edge IP ranges can reach it?