A pretty good way to do this is to put something like http://someonewhocares.org/hosts/zero/ in your router's host file and enable DNS intercepting. It won't catch sneaky same-domain ads but it's great in that it consumes no extra resources on the end device and also works on iOS devices.