Several of the worldâs most popular pornographic websites were struck by cyberattacks in the past week, according a blog post by the malware hunting software firm Malwarebytes.
Sites infected with malicious code included Pornhub and YouPorn, both owned by the Luxembourg-based adult website conglomerate MindGeek. These two sites rack up a combined 800 million visits each month, the post states, citing data from the London-based analytics company SimilarWeb.
This particular type of attack is known as a malicious advertisingâor malvertisingâcampaign. It involves attackers pushing malicious ads through advertising networks, which then appear on websites that display those ads. The worst kinds can compromise usersâ machines through âdrive-by downloads,â while others can push fake webpages filled with scams, alerts, and pop-ups.
In this case, the attack targeted the third party ad network ExoClick. The attackers masked apparently innocuous code as banner ads.
âDuring the past several months, high profile malvertising attacks against top adult sites have been sparse,â writes JĂ©rĂŽme Segura, a security researcher at Malwarebytes, noting that a similar campaign targeted the adult site xHamster last week. âThis makes what we have seen during the past couple of weeks very unusual but also impactful given the sheer volume of traffic these sites receive.â
MORE: âThis porn app secretly takes photos of you, then demands a ransomâ
Malvertising campaigns have also hit news sites such as Yahoo, MSN, and Forbes in recent weeks.
The news arrives as a debate over ad blocking technology rages thanks to Appleâs iOS 9 software update, which makes it easy to install mobile ad blocking tech on its devices. Ad blockers can help prevent the infections caused by malvertising campaigns.
The Pornhub-YouPorn malvertising campaign has been stopped, MindGeek said in a statement provided to Malwarebytes.
We were alerted to the presence of a malicious advertisement appearing on a select few of Pornhubâs web properties. It was quickly determined that the malware originated from a third party advertising partner, and we responded immediately to disable all advertisements associated with this third party, and continue to actively investigate this incident.
âŠIt is important to note that our sites are not delivering malware and we will continue to actively monitor the situation to safeguard our users.
ExoClick did not immediately respond to Fortuneâs request for comment.
For more on advertising, watch this Fortune video below.
Subscribe to Data Sheet, Fortuneâs daily business-tech newsletter.