Forum Moderators: martinibuster

Message Too Old, No Replies

Easy way to disable Adsense!

         

ricey

2:09 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



If my site was to experience a DOS attack or have the ads fraudulently clicked on - is there a very quick way to disable the ads. Or would I need to take the site down until I informed google?

Cheers
ricey

trillianjedi

2:15 pm on Aug 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Ricey,

To my knowledge there is no "disable ads now" button in the AdSense control panel, but what I've done is to put all of our AdSense blocks of codes into include files, which could be quite quickly "emptied" if necessary.

You could script the "emptying" - probably easiest by creating a script that renames "myads.php" to "myads.old" and "myads.empty" to "myads.php" if that makes sense. Then you could simply run your "disableadsnow.sh" script.

TJ

anton23

2:27 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Yes, first that and second as you inform google send them information about your logbook, so they can track the attackers...Probably they are not just attacking you.

And third, block IPs from attackers

ricey

2:29 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Cheers guys. I'm hoping it would never happen but I'd like to know what to do just incase. Paranoid eh :-)

The Contractor

3:26 pm on Aug 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To my knowledge there is no "disable ads now" button in the AdSense control panel..

That would be a nice feature in certain situations. I doubt that it would get used much - kind of like a spare tire in the trunk of your vehicle, but it's nice it's there if you need it.

Maybe add the capability to shut down a channel also.

curlykarl

3:36 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Hi,

You can use php includes, then its just a matter of uploading/downloading a file to turn the ads on/off.

Karl ;)

medowl

5:01 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



If you have a modular CMS, all the code for an adsense unit goes into one module, which is easy to turn off. Maybe CSS can be used the same way, I'm not a CSS expert.

phantombookman

5:12 pm on Aug 25, 2005 (gmt 0)

10+ Year Member



Quick way to disable Adsense!

Keep clicking on your own ads ;)