After discovering this project, I brought a Raspberry Pi 3 Model B from french company Kubii and started configuring it. I’m struggling to make it work, but I fear that the problem is with the wi-fi setting of my Raspbian connection.
Anyway give an eye to the Pi-Hole project
The Pi-hole is an advertising-aware DNS server that prevents ads from being downloaded. Once installed, configure your router to have DHCP clients use the Pi as their DNS server and then any device that connects to your network will have ads blocked without any further configuration. Alternatively, you can manually set each device to use the Raspberry Pi as its DNS server.