General

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads raspberry pi 62 4 1

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads

Do you have an old Raspberry Pi collecting dust? Here is the project you’ve always wanted to find, Transform your old Raspberry Pi into a powerful ad blocker. With Pi-Hole and a few simple steps, you can enjoy a cleaner, ad-free browsing experience on all your devices. In this article, we’ll guide you through the process.

What is Pi-Hole?

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image7 1

Pi-hole is like a smart tool for stopping ads on your whole network. It can block ads on websites, mobile apps, and your smart TV. You don’t need any extra software on your devices for it to work. Pi-hole makes your internet faster by stopping ads from even showing up. It also helps save your data if you have a data limit. With a simple interface
and a lot of options to control every part of it.

What do you need to start?

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image11 1

1-Raspberry Pi :ย 

Any Raspberry Pi would work, starting from Raspberry Pi Zero W for small-scale networks (0-15 devices) or a more powerful device for bigger networks scale like Raspberry Pi 3 or 4. Buy Here

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image4 1

2-Micro SD Card :ย 
You need an SD Card to install the required system on it, at least 8GB, you also need an adapter if your computer device doesnโ€™t have an SD card reader.ย Buy Here

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image1 2

3-HDMI To HDMI Micro Cable
We need it to connect to any HDMI display to configure our Raspberry Pi. Buy here

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image19 1

4- LAN Cable:ย 
We need a LAN Cable to make a connection between the Raspberry Pi and our network. Buy Here

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image2 1

ย 5- Your computer:ย 
You need to use your computer to set up the whole thing.

Thats it! now you are ready to follow the tutorial and complete your project.

Installing Raspberry Pi OS Lite On The SD Card:

We start by preparing our Raspberry Piโ€™s operating system which we
Will be using it to install Pi-Hole later.
First of all, we need to install โ€œRaspberry Pi Imagerโ€ which is software that allows us to easily install the Raspberry Pi OS in our SD Card. Download it from here

After clicking the link above you should see a โ€œDownload for Windowsโ€ button or โ€œDownload for macOSโ€ depending on your device, click it and it will be automatically downloaded.
After the download finishes, you have to open it to run the install, It’s a simple installation process.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image12 1
Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image16 1 1

After finishing the installation, open the program and you will see this interface which is very simple and easy to use.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image3 1 1 e1701677333943
Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image10 1 1

Now you need to insert the SD Card on your device

We are almost there! Not a lot remains to finish.

Now on โ€œRaspberry Pi Imagerโ€ click on โ€œCHOOSE OSโ€ Which will show you all the operating systems, but we needย  to choose just one which is โ€œRaspberry Pi OS Liteโ€ which you
can be found when clicking on โ€œRaspberry Pi OS (other)โ€.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image18 1
Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image18 1

Now click on โ€œCHOOSE SD CARDโ€ and all the available SD Cards will show up, you need to choose yours

IMPORTANT NOTE ย this step will format all your data in the SD Card

The last step here is to click on โ€œWRITEโ€, Now take a rest and wait until it finishes, it may take some time.

Congratulations! You successfully installed the OS, Now unplug the SD Card from your computer and plug it into your Raspberry Pi, then plug the
HDMI cable and the power cable.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image6 1

First Boot :

The system will request a new username for your account, connect a keyboard to your Raspberry Pi, choose a name then type it, and remember it, then it will request a password.โ€ Itโ€™s very important to remember themโ€.

After that, if you see a black screen with text on it donโ€™t worry! Actually, this is what you should see, this is called a โ€œTerminalโ€ which is a fully functional system that works with the commands only, let’s continue.

Installing Pi-hole On Your Raspberry Pi:

Are you excited for your first command? Now in the terminal type the following :

curl -sSL https://install.pi-hole.net | bashย 

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image13 1

The Pi will start downloading and installing the software. It takes a couple of minutes to run through and youโ€™ll then get to the following page to guide you through the Pi-hole setup.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image20 1

In most cases, you can simply go with the default options and click OK. Don’t tinker with these settings unless you’re confident in your knowledge; otherwise, you might end up with a non-functional Pi-hole.

When you finish installing, you’ll see a message that says “installation complete.” Remember the Admin Webpage password because you’ll use it later to log in to the Pi. You’ll need it to check detailed stats and make any changes. You can change this password on the website, but you need the original password to do that.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image9 1

Setting Up Your Router To Direct DNS Requests Through Your Pi-hole:

Go back to your computer and click start, Search for โ€œcmdโ€ and a window will open

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image17 1

Type ย ย ย ย ย ย ย ipconfigย  ย  ย  ูŽ

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image5 1

copy โ€˜Default Gatewayโ€™ and open it on your browser, this will take you to the admin panel for your router To log in you have to get the username and the password usually, it will be under your router.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image15 1

After login go to DNS settings in your router
Here youโ€™ll need to set your Pi-holeโ€™s IP address as the primary DNS server, if your router has to have a secondary DNS server, then type the same address into that field as well. Click save or apply to make the changes. You may then need to reboot your network devices to take effect.

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads image14 1

Finally, you are all set! enjoy your Ad-Free experience.

  • SHOP ALL PRODUCTS USED IN THIS BLOG

How helpful was this post?

Please comment to rate it anonymously!

About the Author

Turning Your Old Raspberry Pi into an Ad Blocker: Say Goodbye to Online Ads bpa

Qutibah Ananzeh

I’m Qutibah Ananzeh, a Computer Engineering student. I have a huge passion for software development and AI. I enjoy turning programming ideas into things you can touch and interact with, like robots. In my free time, I read about new technologies and watch videos about the newest tech products. I’m passionate about making technology practical and easy to understand in the world of computer engineering.

Leave a Reply