For general blocking, I use the /etc/hosts files from someonewhocares.org/hosts/zero/.
NOTE: I saw on Reddit today that someone caught Adobe using their product installers to modify
/etc/hosts, which is extremely creepy. It might be a good idea to make/etc/hostsread-only (even for root) usingsudo chattr +i /etc/hosts. This method is more powerful than just modifying the file's permissions and can only be undone bysudo chattr -i /etc/hosts. (This probably won't defeat a sophisticated installer that simply runs thechattrcommand itself, but it might be sufficient to block casual modification attempts.) It might also be a good idea to store a hash of the file somewhere safe and then compare/etc/hostsagainst the hash every once in a while to determine whether or not it's been modified.
For browser-based blocking, I use uBlock Origin with the addition of a one-line Google login pop-up filter (added to "My Filters"): ||accounts.google.com/gsi/iframe