It`s much easier n Firefox than in other browsers
You have to search among the extensions associated with your browser an antiad software, such as AdBlock Plus on Firefox. You simply install it and blocks 99% of the unwanted ads, some are smart enough to surpass the software