One very simple approach is to avoid porn or warez pages. These pages are usually laced with an incredible load of pop ups and various types of security breaching wares. General webpages are not such a big worry. Performing regular windows updates helps, but it would be better if one can install simple personal firewall which are freely available on the web. Although such programs are not 100% secured, but they can allow a computer user to identity and eradicate certain spyware.