Question

DigitalOcean + Cloudflare

Hey guys,

I have a website hosted on DigitalOcean. Previously, my domain was simply pointing there.

About six months ago, I decided to use Cloudflare. I have a Pro Plan. I set everything up quickly and smoothly, but I’m noticing some strange behavior that I can’t explain. Maybe someone can help me with this.

First issue: In the “Overview” section of my domain on Cloudflare, I see about 50 unique visitors per day. However, in reality, I have around 5,000 according to Google Analytics.

I have other domains that use Cloudflare and are hosted elsewhere, and their statistics more or less match Google Analytics.

Second issue: Some of the features I’m trying to configure behave VERY strangely. For example:

  1. I tried setting up Security Rules. I selected my own country and set the Action to “Interactive Challenge”. I tried triggering this challenge multiple times using different devices, incognito browser tabs, mobile and wired internet, and proxies (from my own country). I also tested automation tools like Puppeteer. I only saw the challenge once. It feels like most of the traffic is bypassing Cloudflare.

  2. I have IP Geolocation enabled, but I never see this field in the request headers. Not even once.

Any ideas what could be going on?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
March 27, 2025

Heya, @75ec22935df544248b8a24847c9b5e

You can go to Cloudflare Dashboard → DNS and check: Are your A records orange-clouded (proxied)? If they’re gray-clouded, traffic goes direct to your origin, bypassing Cloudflare.

Make sure your A and www (and any other subdomains) are proxied through Cloudflare — toggle the gray cloud icon to orange.

Regards

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.