How to prevent malicious advertisements from ruining your day.