Linux Hint published a tutorial about setting up a Raspberry Pi proxy server with Privoxy.
Set up Raspberry Pi Proxy Server using Privoxy
You can create a Raspberry Pi proxy server by installing the Privoxy on your device as this allows you to block the ads from appearing on the screen while browsing.