Is there a way that I could code it so that I can put an adsense ad on one of my sites and have it set to not show the add when a certain IP range views it? I basically want to put a block on northwestern oklahoma, and a section of another state. The site i'm refferring to is getting around 7-8K uniques a day.
If you are using PHP or another language to display your pages then you could insert code which checks the IP address of the individual visiting your website and then decides whether or not to show the section of the page containing the AdSense ad block. Something like: <?php $ipAddress = $_SERVER['REMOTE_ADDR']; $ipAddress = str_replace(".", "", $ipAddress); if( !( $ipAddress > 127000 && $ipAddress < 12700256) ) { ShowAdSense(); } ?> If you are only displaying static pages, then you need to make two versions of your site. One with and one without AdSense. Then you would redirect based on IP address ranges.
Yeah I set mine up so it does not show the ads if the visitor comes from an array of ip's. It certainly doesn't do a range or anything just ip's from my house, office, etc. Send me a PM if you want my code... not anything special but does get the job done.