christian fei's blog

agile developer

clean code connoisseur && testing aficionado

read more about me

read some posts that i wrote


follow me on twitter

connect with me on linkedin

distilling customer feedback at wonderflow

Edit this page on GitHub

Simple ad and trackers blocking with DNS

by Christian Fei

written on Mon Aug 26 2019 00:00:00 GMT+0000 (Coordinated Universal Time)

You can use your hosts file to redirect all traffic in a local black hole (namely

sudo vi /etc/hosts

Add the following lines (plus hosts you find out by yourself) to /etc/hosts and save it:

if you check the network tab in your browser, you will see something like this: