The problem is actually with the ad brokers. Some ad brokers don't check content when posted to their ad services (Google Ads for example does), so when the ad appears in rotation viewers are treated to inappropriate ads.
This is how the Fake Anti-virus ads are populated.
Generally the solution to this is to disable pop-ups from certain hosts.







