A straightforward solution to this problem is an ad-blocker, a software tool that detects and thwarts ads at their source.