DEV Community

Cover image for Block ANY ads for FREE 🤯
Benedikt Schächner for Technology Schächner

Posted on • Originally published at technik.xn--schchner-2za.de

Block ANY ads for FREE 🤯

In this guide, we will show you how to block ANY ads on various websites for FREE with AdGuard Home on Raspberry Pi.


Do you like our instructions or do you want to know more about specific topics?
Feel free to write it in the comments and leave a like there!


First of all, we need to install Raspberry Pi OS.

For this we need the Raspberry Pi Imager, which we download from the official website:

https://raspberrypi.com/software

After launching the software, the first thing we need to do is select our OS. We choose among

Raspberry Pi OS (Other) -> Raspberry Pi OS (64-bit)

out of.

Then we select our SD card.

Finally we go to "Write"

This process overwrites all files on the hard disk and these cannot be recovered afterwards!

After we have done that, we insert the SD card into the Raspberry Pi.

Optionally, we can still connect it with a LAN cable so that we can achieve better performance. But we can also use the WiFi in the facility as usual. The setup is quite quick and self-explanatory. If updates are to be installed during setup, feel free to skip this step!

After the restart we see the graphical interface. If you want us to do some more items to beautify the design, please let us know in the comments!

But first we open the terminal and type two codes into the window. You can simply copy and paste these.

CD
wget https://static.adguard.com/adguardhome/release/AdGuardHome_linux_armv6.tar.gz'
tar -f AdGuardHome_linux_armv6.tar.gz -x -v
Enter fullscreen mode Exit fullscreen mode

and

cd ./AdGuardHome/
sudo ./AdGuardHome -s install
Enter fullscreen mode Exit fullscreen mode

The installation is now complete!

Now we switch to the browser and then to the IP address that is displayed. The displayed IP address (127.0.0.1:3000) only works directly on the Raspberry Pi. Do you want to set up AdGuard Home somewhere else? Then go to "raspberrypi:3000" in the browser.

And here we are:

We go to "Begin" and then see the second step.

You can leave the settings as they are. You just need to remember the IP addresses that tell how AdGuard Home can be accessed!

Then we set a password.
Image description

The next step is the device configuration, but we'll get to that later.

Let's just move on and we're at the graphical interface!

Image description
By default, we already have a preconfiguration that already blocks ads. If you want more detailed instructions on this as well, write it in the comments! But if we were to list them here, it would go beyond the scope of this guide.

[CONFIGURATION IN WINDOWS 11 DEVICES]

We go to the settings, select "Wlan", then the connected wifi by going to "Properties of XXX". Then we edit the DNS server assignment by tapping "Edit" and editing the network DNS settings, switching IPv4 to "On" and typing in our IP address as "Preferred DNS".

Thank you for reading,
Schächner

Top comments (0)