Mod_cloudflare support discontinued... is it no longer needed?

Cloudflare “strongly recommends” using mod_Cloudflare if you are using AdSense.

But, Cloudflare “will no longer update and support mod_Cloudflare, starting with versions Debian 9 and Ubuntu 18.04 LTS of the Linux operating system.”

So… what are we to do?

Is mod_Cloudflare no longer needed for Adsense with Ubuntu 18.04 LTS?


Mod_Cloudflare simply provides the real visitor IP in access and error logs, and is not required for adsense usage.

By the looks of that warning, Cloudflare simply won’t be building and releasing mod_Cloudflare themselves for debian 9+ and Ubuntu 18.04+, however you can still build it yourselves with this help article.

1 Like

Thanks Judge,

I’ve been browsing on this issue and some say that AdSense will record Cloudflare’s ip address as the location the person viewing the ad is from, thereby not giving them the most relevant ads.

Supposedly mod_Cloudflare would rectify that.

Is that inaccurate?

AdSense is a script sent to the user’s browser, so Cloudflare’s IP addresses will never come into the equation ensuring users always see the most relevant ads, whether mod_Cloudflare is installed or not.

The only thing mod_Cloudflare does in terms of IP addresses is give you insight as to what a visitor’s IP really is in your log files.

If you don’t want to install it, it won’t affect how AdSense ads appear on your website.

That makes a lot of sense, thank you.

There’s a lot of misinformation online - who knew? :slight_smile: :slight_smile:

Thanks again,


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.