Msg#: 11033 posted 5:26 pm on Dec 13, 2005 (gmt 0)
Most of these replies are missing the mark. The OP already knows about the hosts file and presumably wants to be able to view the Google ads on his or her own site. I have two suggestions, both of which ultimately fall short of what specifically you're trying to do, but they may be helpful...
1. If your goal is to work on the layout of your site while seeing the same kind of ad block anyone else would see, you can use PHP or whatever to serve up default ads to your specific IP that mimic the appearance of typical ads on your site.
2. If it's enough to be able to switch between viewing modes easily, you can do so by creating (for example) a hosts2 file, that contains the AdSense server, and a hosts3 file, that doesn't, in the same directory as the hosts file. Then create 2 simple .BAT files like this...
copy /Y hosts2 hosts
copy /Y hosts3 hosts
Then drag the icons for the 2 .BAT files onto your desktop. Fairly trivial. The only thing I've noticed is that you probably will have to close your browser and re-open it in order for the change to take effect.