homepage Welcome to WebmasterWorld Guest from 204.236.255.69
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Google / Google AdSense
Forum Library, Charter, Moderators: incrediBILL & jatar k & martinibuster

Google AdSense Forum

    
Router setting to block clicking on your own ads?
heyday




msg:1468339
 11:24 am on Dec 13, 2005 (gmt 0)

Does anyone know here if it is possible to block outgoing traffic to pagead2.googlesyndication.com so in case I click on my own ad it doesn't go anywhere?

Right now I have edited my HOSTS file to send traffic to pagead2.googlesyndication.com to a internal IP but the probelm is I can not view ads now.

Any other solutions to this?

heyday

 

Hobbs




msg:1468340
 1:24 pm on Dec 13, 2005 (gmt 0)

yes, self control.

heyday




msg:1468341
 2:31 pm on Dec 13, 2005 (gmt 0)

Obviously self control but get serious here.... I want to dummy proof this..

There has got to be an way to do this....

heyday

Nutter




msg:1468342
 2:38 pm on Dec 13, 2005 (gmt 0)

Here's what I did...

1 - In FireFox, I added my initials to the User-Agent string.

2 - I've got a PHP script that checks for my initials in the UA and outputs the Google ads if it's not found. If it is found, it outputs something like 'ads not shown for you'.

And, what I used to do...
Same idea, but checked my ip address first instead of the UA.

I'm not too worried about clicking on my own ads, it's more so the impressions don't show up in my stats when I'm working on the sites.

Qur1uS




msg:1468343
 4:06 pm on Dec 13, 2005 (gmt 0)

there is a hosts file change you can make if you are a windows user. Look here [webmasterworld.com...]

jetteroheller




msg:1468344
 4:41 pm on Dec 13, 2005 (gmt 0)

I have SSI inserted ad code.

The SSI script looks for several condition to show only an alternate ad code.

One condition are special user agent strings at the notebooks of other family members.

jomaxx




msg:1468345
 5:26 pm on Dec 13, 2005 (gmt 0)

Most of these replies are missing the mark. The OP already knows about the hosts file and presumably wants to be able to view the Google ads on his or her own site. I have two suggestions, both of which ultimately fall short of what specifically you're trying to do, but they may be helpful...

1. If your goal is to work on the layout of your site while seeing the same kind of ad block anyone else would see, you can use PHP or whatever to serve up default ads to your specific IP that mimic the appearance of typical ads on your site.

2. If it's enough to be able to switch between viewing modes easily, you can do so by creating (for example) a hosts2 file, that contains the AdSense server, and a hosts3 file, that doesn't, in the same directory as the hosts file. Then create 2 simple .BAT files like this...

adsense-off.bat:
copy /Y hosts2 hosts

adsense-on.bat:
copy /Y hosts3 hosts

Then drag the icons for the 2 .BAT files onto your desktop. Fairly trivial. The only thing I've noticed is that you probably will have to close your browser and re-open it in order for the change to take effect.

jomaxx




msg:1468346
 5:30 pm on Dec 13, 2005 (gmt 0)

P.S. The .BAT files would have to be in the same directory as well, or alternatively you could include the full path when specifying the files.

heyday




msg:1468347
 6:45 pm on Dec 13, 2005 (gmt 0)

Found a fix that works for me....I use IE

1. Tools/Internet Options/Security/Restricted Sites/Sites 2. Add the following site to the list

pagead2.googlesyndication.com

3. Close all browser windows and then re-open Internet Explorer.

4. It should allow you to see ads but not click on them....

It worked for me

heyday

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Google / Google AdSense
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved