Blocking adware, malware, and tracking sites
crlf.linkTo block on a DNS level on iPhone and Mac I use Lockdown which is open source and lightweight. Recommend it to everyone but the initial setup is a bit long because the built in filters are too scarce.
DYI blocking, a few methods