Forum Moderators: martinibuster
I know it would only be useful to people who are working from static IP addresses, but it does seem that even very professional webmasters sometimes accidentally click on an ad, and it would be nice to know that you can work on your own pages with impunity.
Supposing someone reported an odd javascript error with a certain browser. You might make hudreds of page views trying to reproduce it and work out exactly what was happening, and that could easily confuse the Adsense 'bot into believing that it was serving up inappropriate ads as the CTR would drop (depending on how popular the page was with the GP).
For example, using a simple Apache Server-Side Include:
<!--#if expr="( ((${REMOTE_ADDR} != /192\.168\.0\.1/) && (${REMOTE_ADDR} != /10\.10\.10\.2/) )" -->-Adsense code goes here-
<!--#endif -->
The technical approach is, I think, sound, but I am not sure about the answer to the "Is this allowed" part of the question. If used only to suppress ad serving to your own IP address, I would think this allowable, and in fact, undetectable.
Jim
I've been using a similar system for the last 12 months without problem, selectively displaying Ads based on a set criteria. There's nothing in the AS TOS to say you can't do that.
In a thread I had in here (somewhere) about "rotating Ads", AdsenseAdvisor posted and certainly didn't complain. In fact, he/she welcomed the line of thinking.
In my particular case, it was about not showing ads to regulars all the time, but the process is identical.
You could drive this quite easily from a DB and have a blacklist of IP's.
TJ
<!--#if expr="( ((${REMOTE_ADDR}!= /192\.168\.0\.1/) && (${REMOTE_ADDR}!= /10\.10\.10\.2/) )" -->-Adsense code goes here-
<!--#endif -->
what is the maximum ip addresses I can ban with this script?
I really hate having to give each guest a mini-training course on what an adsense ad looks like, and why they shouldn't go to my website and click on one. In fact, most of the time they look at me as if I'm a bit deranged, especially the ones who aren't as computer literate as the rest of us.
This week I'm away and a couple are coming to stay with my wife and son. I'm not going to 'provide any training' because I'll be gone by the time they arrive, so I'll have to cross my fingers that nothing happens whilst I'm away.
</whinge>
Please, ASA, can't we have an "ignore these IP addresses" feature?
"Pretty please"?
It'd help cure my insomnia :-)
Hosts file. Hosts file. Use the hosts file.
Good idea. Third good idea in the last two days. This forum is flowing with them!
Having said that, I don't know much about host files, but they are on the PC are they not? If so, this is useful in most but not all circumstances, I think.
I want to be able to see the ads from my computer (to monitor what appears). But guests have a separate logon to our network, so I presume that I can set up a separate hosts file for those that logon as guest, so that particular problem is solved.
But another problem (relevant for me this week) is the guest bringing their own laptop and connecting to my dsl modem/wireless network. The relevant hosts file is on the laptop, is it not? This isn't so much of a problem, because laptop-owning guests tend to be pretty computer-literate, but it would be good to find a more permanent solution and avoid having to go through the mini training course!
The server side include he posted earlier will stop the adsense from being displayed to the ip address you don't want it displayed to.
But, I agree, we should be able to tell google which IP's not to count.
I wouldn't care to use this to exclude more than a handful of IP addresses... Maybe ten.
But you might get the results you want by excluding IP ranges, for example 192.168.0.1 - 192.168.0.255, by specifying only a partial address. In that way, you could exclude several entire blocks of addresses without making the code ugly and hard to maintain, and without too much code-bloat.
Jim
Yes, the hosts file is on the individual PCs -- typically at C:\WINDOWS\SYSTEM32\DRIVERS\etc on an XP machine. As such it's not really a very good solution if you have people popping in and out with their own laptops. It's also a "per-computer" setting, and not a "per-user" setting. Instead of the "don't click ads" speech, you'd have to walk them through modifying their hosts file...
Jim