cracking adsense. a failed attempt.
The idea -
whenever a page is viewed, javascript reads the google adsense links and automatically perform an asynchronous open on it. This is equivalent to a click on the link, without even showing the target page.
well.. i didnt know javascript much… but knew what exactly i wan to do and the basic funda of asynchronous stuff (the AJAX). and there was google search to help me hack google adsense.
The story -
* adsense script puts the ads in a iframe. after trying for a while i discovered that javascript doesnt allow me to read the contents of another frame.
* but i was able to access the src url of the iframe. so thought i would fetch the iframe url first, and then get the url from it, and then open that url.
* again.. after trying for a while i was able to figure out that javascript doesnt allow me to send me a XMLHttpRequest (asynchronous open) to a url outside the domain of the parent url.
these restrictions in javascript are there for security reasons, and ruined my dreams of free bucks.
can anyone around think of any better ways ?






January 6th, 2006 at 8:52 pm
Re:
xmlhttprequest allows you to access different hosts in the same domain… say a.b.com and z.b.com. Now the trick i can think of is to setup your hosts file to have z.b.com to an ip which you have access to. Setup a dummy listener program that reads the request and forwards it to wherever you wish to send it!
January 6th, 2006 at 9:00 pm
yeah.. that works..
but the problem with it is that.. all clicks will come from same ip (the forwarding ip) and google will easily catch that.
January 6th, 2006 at 9:36 pm
Re:
LOL… As though spoofing IPs is difficult ;). All you need is the cookie or session identifier if it is generated!
February 14th, 2006 at 3:39 am
Re:
How were you able to access the src url of the iframe? Was the iframe address on another domain? I have been pulling my hair out trying to do this.
March 1st, 2006 at 5:10 pm
Re:
It would take something really complex to beat adsense ….! lot of people have tried and failed..
March 15th, 2006 at 11:41 pm
Re:
you realize that if you “crack adsense” you are not stealing from google, but rather from ordinary advertisers. might as well just get a gun and rob some nearby store. probably can get more money that way, too.