• For non-logged-in viewers, the latest version of Wordfence (6.1.5) firewall seems to be preventing Google from displaying adsense ads, even with all firewall options for whitelisting pagead2.googlesyndication.com enabled. The ads display properly for the logged-in admin user, but not for anonymous browsers to the site. If I revert back to a pre-firewall version of the plugin, everything behaves at it should, so I have a high confidence level in the firewall being the source of the problem. Any thoughts?

    https://wordpress.org/plugins/wordfence/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello sephage,
    A few questions.

    1. Are you using a plugin for adsense? If so, which one?

    2. Are you using country blocking at all in Wordfence?

    3. When an add is getting blocked, can you see the request getting blocked in the “Live Traffic” view?

    Thread Starter sephage

    (@sephage)

    Thanks.

    1. No, it’s all PHP / code.

    2. Nope.

    3. No. The odd thing is that the ad code may actually be running, but Adsense is defaulting to the backup ad I specified (when it cannot run its own ads); this behavior corrects if I revert back to the last pre-firewall version of Wordfence.

    Hello sephage,
    sorry for the late reply. If you set the Firewall to “Learning mode” do the adds work then?

    Thread Starter sephage

    (@sephage)

    Thanks.

    Nope; it’s been in learning mode the entire time, actually.

    Okay, it’s not the Firewall then. It’s something else. The question is what.

    1. Does the adsense code look intact when you view the source of the page?

    2. Have you tried viewing the pages where the ads fail with a browser console open? (Check for any javascript or net/http errors).

    Thread Starter sephage

    (@sephage)

    >> Okay, it’s not the Firewall then. It’s something else. The question is what.

    If I revert to the last pre-firewall version of WF, it behaves normally.

    >> 1. Does the adsense code look intact when you view the source of the page?

    Yes, and it is defaulting to displaying whatever is set on the Google end when it is unable to display ads (my own custom banner, or colored rectangle, etc.).

    >> 2. Have you tried viewing the pages where the ads fail with a browser console open? (Check for any javascript or net/http errors).

    Yes, that code appears to be functioning as designed.

    Hello again,
    yes I see that it’s something related to a recent version of Wordfence but the Firewall doesn’t actually block anything if you don’t have it enabled. What you get then is the regular blocking that Wordfence always had. Of course, the more recent versions include more changes than just the Firewall.

    Via AdSense you are supposed to be able to get a crawler report. Can you see any issues there with AdSense crawler not being able to index your site?

    Wordfence don’t let Google adds plugin (from google) to work properly. Help.

    Is there a conflict with the plugin? I have installed Wordfence and now my ads do not show, just a blank space where the ad should be. Any luck figuring out the problem? I still have the same problem even when I disable the Wordfence plugin. Seems once I have it installed, ads don’t show. They were showing prior to me installing Wordfence plugin on many of my sites. Any help would be greatly appreciated.

    Shashank Shirke

    (@shashankshirke285)

    Hi @wfasa

    I am still not able to display the ads even after having Wordfence in Learning Mode for the past 10 days.

    Can you please help me out with this?

    Here’s a screenshot of my whitelist: http://prnt.sc/dseddv

    I am using the Newspaper theme from CodeCanyon.

    Hi!
    I am afraid I do not have any answers to this as this is not something we have been able to reproduce. I can give you some tips for troubleshooting and if you are able to find any more information that may be relevant to the case, please share.

    Whenever Wordfence blocks anything an entry is created in “Live Traffic” that shows the block and the reason for the block. If something is getting blocked but nothing appears in Live Traffic, then it is not being blocked by Wordfence.

    Judging by the current descriptions of this issue, it sounds like it may be a conflict with certain themes or plugins. It could be that a JavaScript error happens on the page which in turn prevents subsequent JavaScript from executing. To investigate if this is the case, please keep a browser console open while viewing the page. Check the “Console” and “Network” tabs to ensure that no errors are occurring in either.

    I am subscribed to this thread and I will have a look as soon as I can when a new reply is made.

    Thanks,

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Google Adsense & new Wordfence firewall’ is closed to new replies.