I’m at a bit of a loss here. My desired outcome is to not show ads to anyone logged into the forums. Currently I am only set for adsense ads, no in-house yet.
Despite configuring trust levels and so on to prevent ads being seen by logged in users, some are still seeing them.
Actually add me to the list as admin too I’ve even seen them in the admin panel and general browsing.
Problem is that I cannot find a pattern to it.
It’s intermittent for the users.
There doesn’t seem to be a consistent browser/OS involved
It’s impacting various trust levels.
Any ideas where I can look next to see what could be causing this? One thing I should mention is that I’m using cloudflare in front of the forums.
As I type we’re on latest discourse and ads plugin.
Really good point.I did clear the CF cache at the outset, but will give this a go and report back. I know I don’t have all CF features turned on, especially the ones with JavaScript wizardry.
But will try dns only or developer mode and see how it goes.
OK well that’s weird… DNS only seems to stop the website from loading. I’ve toggled back and forth between DNS only and proxied and it only loads when the forums subdomain is set to proxied…
I’m pretty sure it was a standard install, I did it 7 years ago or so following the Ubuntu guide at the time which at that stage I think it was installed 18.x LTS. It’s on Ubuntu 20LTS + Docker as I type now.
Yes I switched back to proxied but with all minification disabled. No change.
Update: Turned off caching for the subdomain with a page rule. We’ll let that percolate for a while.
Update… I’m personally still seeing (some) ads inside the Discourse Hub app and native Safari on iOS. Mostly bottom of page ads (Including the admin panel!) but also a top page one after logging in. CF caching is still disabled.
Checking in with the community to see where we’re at otherwise.
Since it’s been so long since your install, you don’t have let’s encrypt, so your site can’t work without cloudflare.
I would recommend spinning up a new VM and re-installing then you can switch over. If you really love that machine for some reason, you can rename app.yml and run ./discourse-setup to get a clean install that will get you a let’s encrypt certificate.
I think that conclusion is a little premature. The issue persists despite caching being disabled in CF for about a week now. Unless it’s something else in CF that you suspect is the issue?