Adding lines redirecting the sites of the ads to 127.0.0.1. Or you can use HostMan to manage your hosts file automatically.