Google Adsense Blocked?

05.04.22, 11:16 PM

I’ve been wondering for a while about never seeing Google Adsense ads on any site anymore. This problem was getting on my nerve earlier today when I noticed I couldn’t see Google Adsense ads on my own site while my friend could, so I googled with the keywords google adsense blocked, can’t see google adsense and etc but all the returning results didn’t help. Eventually I figured out the problem and googled for it, BINGO! Now the problem is solved :)

So what actually went wrong? The answer was the host for google adsense’s javascript, pagead2.googlesyndication.com was blocked from my computer. I wasted quite a while trying to figure out what actually blocked the host, it wasn’t my firewall, nor my browsers. Finally I googled for googlesyndication blocked and found the answer at this forum.

There’s a Windows HOSTS file [C:\\Windows\\System32\\drivers\\etc\\HOSTS] which contains a list of hosts that’s actually pointed to localhost (127.0.0.1), and somehow those google hosts were there. So I just commented these lines below with the hash sign in front to disable them to make Google Adsense works on my computer :)

# [Google Inc][Restricted Zone site]

#127.0.0.1 adwords.google.com

#127.0.0.1 pagead.googlesyndication.com

#127.0.0.1 pagead2.googlesyndication.com

#127.0.0.1 adservices.google.com

#127.0.0.1 www.googleadservices.com

Posted in Life-Log