The simple project should take all over ten minutes to set-up and turns a Raspberry Pi into your very own ad blocker. There is more to it than just blocking ads though, as it also gives you an oversight of your whole network among other features.
https://www.notebookcheck.net/Raspberry-Pi-Turn-the-popular-single-board-computer-into-an-ad-blocker.460236.0.html