So if you want to block spyware, you can go after the ad servers as well as the spyware on your computer. While researching this topic, I found the Network Advertising Initiative (NAI), an organization created by advertising networks to uphold privacy and fair trade practices. The NAI site includes an opt-out page, designed to let you opt out of the cookies generated by advertising networks. I tried it, and it didn't work in Firefox at all. With Internet Explorer, I was able to opt out of cookies by about half of the NAI member networks.
That result was disappointing. Another option is to go nuclear, by blocking ad servers in your hosts file. Every Windows computer has a hosts file, a list of Internet addresses and their associated IP numbers. For a better explanation of the hosts file, read this article. Various Internet users have compiled lists of ad servers. You can add these to your hosts file, telling your computer to look to itself for the IP number instead of looking for it on the Internet. The result is a lot of blocked ads. The problem with this approach is that you will block a lot of Web site banner advertising, cutting the revenue for your favorite sites. There should be a better way to take the money out of spyware. Internet advertising networks should refuse to do business with them, as should any direct advertiser.