How to hide your adsense code

Status
Not open for further replies.

yoey

New member
Jul 21, 2006
303
0
0
For all you arbitragers or adsense TOS violaters :

Does anyone know a useful way to hide adsense code so that people won't be able to report me. I know it's impossible to completely hide it, just make it harder for people (who aren't internet savvy) to report me. What methods do you guys use, if you use any at all?
 


I think anyone who would report you is pretty internet savvy. It takes a lot of internet savviness just to know what AdSense is, nevermind know how to report someone.

But yeah I would be interested to hear an answer to this.
 
Great stuff in the blue-hat-seo post... the part about masking your adsense ID.

but most people report your site by clicking the "ads by google" image/text... don't think there is a way to protect against this.
 
Even better would be if you dynamically create the iframe via javascript like so: (Put the javascript in an external file)

Code:
<script language="JavaScript" type="text/javascript">
function makeFrame() {
	ifrm = document.createElement("IFRAME");
	ifrm.setAttribute("src", "http://www.example.com.com/iframe_location.php");
	ifrm.style.width = 460+"px";
	ifrm.style.height = 68 +"px";
     document.getElementById('location').appendChild(ifrm);
}
</script>

You'll have to have an element location in your html: <div id="location"></div>

(Untested)

Or you could just overwrite the google_ad_client variable again before you call the show_ads.js script. You could obfuscate it pretty well and use eval statements etc.
 
Status
Not open for further replies.