Raspberry Pi Ad Blocker

62

How to install an Ad Blocker on your Raspberry Pi

Step 1: About Me

Name:

Enrique Juarez

College:

Eastern Washington University

Location:

Spokane Washington, RiverPoint Campus

Major:

Business Management & Business Information System

Step 2: Project: Ad Blocker

Lab:

Raspberry Pi Ad Blocker

Field of study:

Cyber Security

Step 3: What Is Pi Hole?

Pi Hole is an internal private DNS server for your network, it is meant for a network-wide ad blocker. This makes it easier so instead of installing adblockers for all your different devices and browsers this program you will only have to do it once and it will protect all the devices you want. It will also block ads from your smart T.V. and your video games.

Step 4: Materials Needed:

1. Monitor: Can be computer monitor or it could just be some sort of screen with a HDMI plug in

2. Power Supply: Power supply with micro USB or just micro USB wire

3. Raspberry PI: You can pick which you want but i recommend the Raspberry Pi 3 model B/B+

4: SD card: 16gb Micron SDHC recommended but could get a higher if wanted

5. USB Ether adapter

6. Ethernet Cable: At least a foot long or longer depending where you plan to leave it

Step 5: Software Needed:

1. Raspbian Lite

2. Pi-hole.Etcher

3. Pi-hole server.Pi-hole

Step 6: Hooking Up Raspberry Pi

1. Hook up Ethernet cable from router to raspberry pi so you have internet.

2. grab a monitor or TV (it doesn't matter)

3. grab you HDMI cable and connect to whatever monitor you are using with the raspberry pi. So you can see what you are doing.

4.connect your micro USB cable to your pi for your power

5. connect your keyboard and mouse to the raspberry pi USB plug ins so you can control it.

Step 7: Starting Up Raspberry Pi

1. turn on pi by plugging in power supply

2 Pi will turn on with green light that will blink on

3. Login to rasspberry pi

general username will be: pi

general password would be: raspberry

Step 8: Update and Upgrade Raspberry Pi

You would want to update and upgrade your Raspberry Pi whenever you use it just to make sure that your Raspberry Pi is up to date and runs smooth because it could mess up with your Pi.

Here are the steps to update:

1. Type: sudo apt - get update

Here are the steps to upgrade

1. Type: sudo apt - get upgrade

Step 9: Change Username/ Revoke Access

I decided to change my user name, here are the steps for that:

1. sudo demand on pi for changing name:

sudo usermod -aG sudo (new username)

2. sudo demand on pi to revoke acsess:

sudo userdel (username wanting to revoke)

sudo rm -rf/home/(username wanting to revoke)

Step 10: Change Keyboard Lay Out Step 1

If this is the first time you have used raspberry pi hole like me you would have to change the keyboard like I did.

1. First you would need to get to the setting menu this is the demand you will type in:

sudo raspi -config

2. click on " Localisation"

Step 11: Change Keyboard Lay Out Step 2

1. Click on keyboard layout

2. click on generic 105 keyboard

Step 12: Change Keyboard Lay Out Step 3

1. Other

2. English US

3. Tab (ok) after you click on previous step

Step 13: Change Keyboard Lay Out Step 4

1. Click on the default for the keyboard layout

2. Press Tab then press ok to finish keyboard layout settings

Step 14: Downloading Etcher Software

1. Download Etcher to format flash driver:

A. Copy image

B. add ssh.txt file

Step 15: Download Raspberry Pi Hole

1. sudo curl -sSL http://install.pi-hole.net | bash

Step 16: Installing Packages

In this step it will be downloading in the Ad blocker

Step 17: Confirmation on Pi-Hole Install

1.This step just tells you that it has been been downloaded and that they take donations to help it run

Step 18: Choose an Interface

1.Select: wlan 0

Step 19:

1.Select whatever Upstream DNS Provider:

I chose Google

Step 20: Third Party List in Order Block Ads

1.Pick which ever one, I picked StevenBlack

Step 21: Select Protocols

1. Select IPv4 Block ads over IPv4

you pick which ever one that works better for you

Step 22: Choose Current Network Setting

1. you would say yes if that's the IP address you want or No if you want to use a different one.

Step 23: IP Conflict Notice

1. Press Ok

Step 24: Do You Wish to Install the Web Admin Interface?

1. Click ON

Step 25: Do You Wish to Install Web Server

1. Click ON

Step 26: Do You Want to Log Queries?

1.Click ON

Step 27: Select a Privacy Mode for FTL

1. Click on Show Everything

2. I clicked on show everything but you can select any of the other options if you don't want to see everything.

Step 28: Installing Packages

1. On this step its downloading all the options you picked.

Step 29: Installation Complete

1. Your raspberry Pi Hole would be completely downloaded and will give you some information.

2. It shows your IPv4 connection.

3. It shows you Admin webpage login password.

Step 30: Change Pi Hole Password

I decided to change the password on my raspberry pi hole just so no one can get in without permission.

1.Pi Hole demand to change password:

pi hole -a -p

2. From here you will get a confirmation that you want to change your password and you would just change it from here

Step 31: Raspberry Page Interface

Step 32: Login Stats

On this page you will see more stats from the adblockers as well as settings

Share

    Recommendations

    • Fandom Contest

      Fandom Contest
    • Pets Challenge

      Pets Challenge
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest

    Discussions