you can do it with php. <?php if($_SERVER['REMOTE_ADDR']!='100.100.100.100'){ ?> adsense ad code <?php } ?> where 100.100.100.100 is the ip you want to block.