Forum Moderators: martinibuster
JavaScript Framebuster Got me Booted from AdSense
<script type="text/javascript">
try
{
if(top.location.host.toLowerCase().indexOf("example.com") < 1 )
{
//still another site
//alert(top.location.host.toLowerCase());
document.body.innerHTML="<h1 style=\"background:red;color:black;text-decoration:blink;font-family:serif;text-align:center;font-size:x-large;padding:2em;\">Framed display not permitted!<\/h1>";
top.location=self.location;
}
else
{
}
}
catch(e)//couldn't access location, break out of frame
{
document.body.innerHTML="<h1 style=\"background:red;color:black;text-decoration:blink;font-family:serif;text-align:center;font-size:x-large;padding:2em;\">Framed display not permitted!<\/h1>";
top.location=self.location;
}
</script> [edited by: engine at 4:48 pm (utc) on Feb 21, 2013]
[edit reason] examplified [/edit]
The usual pageviews of about 800 per day got inflated to 4500 that day.
"account disabled for invalid clicks"
Suggesting the guy left the pages reloading and could have waked away for a coffee. The entire thing lasted for about 40 mins.
comes off till I nail them down.
I'm not buying this story because a framebuster should execute before AdSense is loaded and displayed, I know mine does, therefore I could load the page a million times with the framebuster and it would have ZERO impact on AdSense which wouldn't have been loaded nor displayed yet.
[edited by: martinibuster at 5:33 am (utc) on Feb 22, 2013]
[edit reason] Fixed formatting. [/edit]
They do. I use it and find it a good Adsense competitor.
A simple framebuster caused this problem? That's scary!
I'm not buying this story because a framebuster should execute before AdSense is loaded and displayed
I don't know about other people, but I would never ever put Adsense on a site getting 800 pageviews per day.