Every ad on a website can generate its own cookie even if you never click on one. The companies attached to these ads, advertising companies, or researchers can gain access to your search history to better understand what you want and target you for ads. Other risks related to cookies are viruses and malware. While cookies do not affect how your computer runs, viruses and malware can be disguised as cookies.