Spyware is software installed without user consent that intercepts or controls user interactions for commercial gain, often through ads. It is typically bundled with other programs or exploits software vulnerabilities. Common tactics include pop-up ads, tracking browsing behavior, and altering browser settings. Users can avoid spyware by updating software, using antivirus and antispyware tools, and being wary of files from unknown sources.