Stop Adsense Security Error: Content at may not load data from...

Posted on 2009-04-10
Last Modified: 2012-05-06
Google has been aware for over a year that their Adsense code causes FireFox to report a security error:

Security Error: Content at may not load data from...

However, they have done nothing about it, and refuse to even acknowledge the issue despite massive amounts of complaints from Adsense publishers. My question is there anyway around this? Normally I would not care, but...

On my website, I load all the adsense ads at the bottom of the page. Then I use javascript to reposition them. I do it basically instantly, so you can't even tell. I can't use css because the layout is too complicated. However, moving the ads instantly seems to cause this security error about 50 times a second for 10 seconds! Meaning any page I load I get 500 errors! It I delay the moving of the ads by a second, or add it to the onload event, then I get 2 errors, not 500. However, delaying the ads 1 second is not feasible and would descrease revenue. So, does anyone have a solution?
Question by:SabreCEO
  • 3

Author Comment

ID: 24119627
Well I'd still like to fix the error. But I have a solution not to cause it 500 times by moving the ad. Now what I do is immediately calculate the position of the holder for the ad, then position the ad absolutely inside the holder. Then, since some parts of the page expand (which would cause the ads to be in the wrong place when positioned absolutely) I then move those inside the holder and set their position to static when onload is fired.

LVL 31

Expert Comment

ID: 24132083
Maybe loading adsense in an iframe will stop the errors

Author Comment

ID: 24160794
Same errors, just they come from the iframe (which FireFox still reports). Doesn't make a difference. The errors are caused by the javascript that Google Adsense uses since it try to access content across domains, which is not allowed. I'm going to assume there's no way to stop the errors completely, since you're not allowed to change Google's code anyway per their terms and conditions, and that's where the issue is.


Accepted Solution

SabreCEO earned 0 total points
ID: 24160861
This doesn't solve the Google Adsense errors, which there doesn't seem to be a solution to. However, as per my first post on how to load the ads at the bottom of the page, and then move them via javascript and css. I realized that actually moving the element in the dom causes it to refresh, which is a violation of Google's tos. However, if you just move the ads relative to the holder by using javascript to absolutely position them (but leave them where they are in the dom) that works fine. And if any part of the page expands, just have the ads repositioned again when you do that.

This seems like a better solution than an iframe, since it's on the same page, and Google can easily crawl it for content and relative ads. It also works with any ads, not just Google.


Expert Comment

ID: 34647148
Has any one ever found a solution to the original problem posted in this thread?  By this and other discussion, this problem seems prevalent and without resolution.

I'm most interested in knowing if this error is effecting revenue.  Are there impressions or clicks that are not being recorded because of this error?

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Bootstrap Form 16 37
Review of the nodejs code 1 35
jQuery Datatables.js Selecting a Row to get ID 5 36
null, truthy, falsey confusion 25 28
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
An overview of how to create reports in Adobe Analytics (formerly Omniture Site Catalyst) using pageNames, events, eVars and props. This video will show you how to install the Omniture Debugger tool so can see (and test) what is being passed int…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question