Distributing content or software on your website that behaves in a way other than what a user expected is a violation of Google Webmaster Guidelines. This includes anything that manipulates content on the page in an unexpected way, downloads or executes files on a user’s computer without their consent, or does not comply with the Google Unwanted Software Policy. Google not only aims to give its users the most relevant search results for their queries, but also to keep them safe on the web.
Some examples of malicious behavior include:
- Changing or manipulating the location of content on a page, so that when a user thinks they’re clicking on a particular link or button the click is actually registered by a different part of the page
- Injecting new ads or pop-ups on pages, or swapping out existing ads on a webpage with different ads; or promoting or installing software that does so
- Including unwanted files in a download that a user requested
- Installing malware, trojans, spyware, ads or viruses on a user’s computer
- Changing a user’s browser homepage or search preferences without the user’s informed consent