Forum Moderators: martinibuster
[edited by: incrediBILL at 10:29 pm (utc) on May 8, 2013]
Google tells you not to block people from accessing your website but they also penalize you for doing it and don't penalize those that rip you off and often reward them better than your own site!
Not that I block other countries because that is polar opposite to the primary purpose of my sites.
- (most) search engines are global, they might eventually like you less if you block them too much
- those in it for the bad things (scrapers, spammers, etc.) know dozens of techniques to work around it.
e.g.: they use TOR, they use a shared webhosting platform, they use a VPN tunnel, they use a botnet,
Is there an easy way for a non-server guy to block two countries? Is it as simple as using the .htaccess file?
And I've set a crawl delay in the robots.txt for the bots that never send me traffic, to at least slow them down a lot.
I'm pretty sure that blocking countries for the purpose of increasing your AdSense earnings is a big nono. It doesn't matter how you try to validate it, bots, poor nations, they'll probably can you. It's not a good idea to post shady things like that publicly.
//visitor pings the service - free and uses the same database as mod_geoip
$.getJSON('http://freegeoip.net/json/', function(geoip) {
//if the country code is ...
if (geoip.country_code&&(geoip.country_code=='CN'||geoip.country_code=='IN')) {
//prepare cookie date
var expdate=new Date();
expdate.setTime((expdate.getTime()+86400000));
//set a cookie, to detect later and replace ads server-side
document.cookie='blockadscookiename=1; expires='+expdate+'; path=/; domain=www.example.com';
}
});
There's no Google AdSense policy against banning countries. And traffic quality matters very much to Google.
netmeg, are you suggesting people are circumventing google's geotargeting and clicking ads within regions that are not targeted and therefore should never have been shown the ads? From my testing google does a very good job keeping ads targeted, even with cities close together.
[edited by: netmeg at 6:48 pm (utc) on May 27, 2013]