Drive-by-pharming is an web-based client-side attack that modify the DNS settings of a user's router by merely having a user visit a malicious web page. These attacks do not impact the integrity of the client machine directly, but rather impact the integrity of network components the client relies on.
Hosting of malware is another type of attack that impacts integrity of the client. In this attack scenario, the malicious web page hosts malware and uses social engineering to entice the user to download and execute the malware. An example of such a technique is a video codec that contains malware, which is presented to be a requirement to view pornographic material (e.g. Fake Celebrity Video Sites Serving Malware) Once the user downloads and executes the malware, the malware has complete control of the machine. Attacks that do not require this user interaction, but rather are capable of pushing and executing malware without user's notice or consent are drive-by-download attacks. These attacks usually trigger having a user merely visit a web page.