Welcome to WebmasterWorld Guest from 54.146.201.80

Forum Moderators: incrediBILL & martinibuster

Message Too Old, No Replies

stop google adsense from displaying

     
3:01 pm on Jul 5, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 5, 2004
posts:40
votes: 0


i want to ask one simple question.

how to stop google adsense from showing at our local computer?

its done with some change to hosts file in windows, but am not sure abt what to do to deny google adsense from displaying.

regards
sachin

3:26 pm on July 5, 2005 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts:2886
votes: 1


You can add the following line in the hosts file:

127.0.0.1 pagead2.googlesyndication.com

This will stop displaying all Google ads on all sites, not only those on your own sites.

5:19 am on July 6, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 5, 2004
posts:40
votes: 0


thanks
i did the same thing
but it makes the pages to load very slow.
as each time their is a request for those files from localhost 127.0.0.1

i am looking at some other idea for blocking adsense ads

5:23 am on July 6, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Jan 11, 2003
posts:442
votes: 0


If you have a web server running on localhost, it won't slow anything down.
5:37 am on July 6, 2005 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14624
votes: 88


how to stop google adsense from showing at our local computer?

Have you tried unplugging the computer?

I think that will eliminate the ads 100% of the time.

10:18 am on July 6, 2005 (gmt 0)

Full Member

10+ Year Member

joined:June 14, 2005
posts:338
votes: 0


hey where/what are the hosts file on my computer?
which file to add what code to stop adsense.

I am running XP with IIS6.

4:10 pm on July 6, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:July 5, 2005
posts:352
votes: 0


If you've used the standard install options

C:\WINDOWS\system32\drivers\etc

If not, just do a search for "hosts" on your windows drive. It's the file with no extension.

4:11 pm on July 6, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


You can turn JavaScript off to stop seeing ads.
4:35 pm on July 6, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Nov 28, 2004
posts:566
votes: 0


This thread reminds me of a friend who added Adsense to his employer's website, but didn't want the ads to show in the office . . .
4:46 pm on July 6, 2005 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 28, 2002
posts:993
votes: 2


Whoa...that takes some nerve.
5:06 pm on July 6, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 28, 2005
posts:65
votes: 0


Obviously the temptation to click your own ads is very high. I recommend Pavlovian therapy methods; I will associate the act of clicking ad links to starving you. Much like the Google method, in that they ban you, then you starve.

Try some mild electric shocks. They're good fun, especially in the right places. Oh, wait... wrong forum.

*grin*

5:09 pm on July 6, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2002
posts:3171
votes: 8


i serve the ads from an include file, i simply have a line of code in the include that says:

if 127.0.0.1 then display: "ads would be here" else : google ad block

... that is only pseudo code obviously!

5:11 pm on July 6, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member topr8 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Apr 19, 2002
posts:3171
votes: 8


sorry didn't read the q properly, ... hmm that stops ads showing when served by the local machine, i also use cookies in the same way to prevent the 'live' site showing ads on the local computer.
7:26 pm on July 12, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 5, 2004
posts:40
votes: 0


still the things don't work
i have several employees working here, who might accidentally click on the ads as they keep working on our website for whole day and few of them are new ones, and i don't want to get into any trouble for clicking ads on our own.

and we are running win xp on all systems and iis is working on only a few systems, but still we face troubles with very slow loading of page due to adsense code looking for some ads on our localhost as well.

7:33 pm on July 12, 2005 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 7, 2003
posts:539
votes: 0


Just block the IP range using PHP or the scripting language of your choice.