Lots of webmasters are trying to disable seeing their own ads. There are two reasons: - they don't want to click their own ads by mistake. - they are paid for impressions rather than clicks. so, to ensure the safety of your account, it's best to disable them for yourself. It's really an easy task, but i see so much webmasters getting banned for clicking their own ads "by mistake", i thought this may be useful. Of course there are a lot of other ways like incorporating ads with your member system etc, but this is the easiest way. I use this little code to disable my ads for me: 1. Open notepad, and type this code: setcookie("disableads", "yes", time()+3600000); 2. save as disableads.php (in fact, anything is ok) 3. open your main files, where your adsense code is located. edit it like this: if (!isset($_COOKIE['disableads'])) { ?> - enter your adsense code here - <? } 4. you're done. run disableads.php once, and you will never see your own ads for a long time. (delete cookies to re-enable them)
ummmm....i'm not habituated to tell ppl's scripts good. well, i'll chk it tomorrow. [pls don't take it by heart man...]
I'm always curious about which ads are displayed, because I generally can't get stable and relevant ads on my site(and keep wondering about the fastest running bird. But the preview tool can still give me answers. Thank you for the code.
no, i mean open this page in your browser for just one time. it should be ok for 3600000 seconds (or whatever you have set in the setcookie part). and be sure to hide this page from visitors lol