Raspberry Pi Ad Blocker

by ejuarez66 in Workshop > Tools

2166 Views, 4 Favorites, 0 Comments

Raspberry Pi Ad Blocker

Raspberry Pi Logo .png

How to install an Ad Blocker on your Raspberry Pi

About Me

Name:

Enrique Juarez

College:

Eastern Washington University

Location:

Spokane Washington, RiverPoint Campus

Major:

Business Management & Business Information System

Project: Ad Blocker

Raspberry hole pic.png

Lab:

Raspberry Pi Ad Blocker

Field of study:

Cyber Security

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.

Materials Needed:

Monitor.png
power supply.png
Raspberry Pi.png
SD card.png
Wire.png
ethernet cord.png

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

Software Needed:

Raspbian.png

1. Raspbian Lite

2. Pi-hole.Etcher

3. Pi-hole server.Pi-hole

Hooking Up Raspberry Pi

IMG_3233.JPG

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.

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

Update and Upgrade Raspberry Pi

IMG_3690.JPG
IMG_1899.JPG

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

Change Username/ Revoke Access

IMG_4450.JPG
IMG_2897.JPG

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)

Change Keyboard Lay Out Step 1

IMG_9961.JPG
IMG_2596.JPG

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"

Change Keyboard Lay Out Step 2

IMG_7756.JPG
IMG_3974.JPG

1. Click on keyboard layout

2. click on generic 105 keyboard

Change Keyboard Lay Out Step 3

IMG_3167.JPG
IMG_2108.JPG
IMG_8350.JPG

1. Other

2. English US

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

Change Keyboard Lay Out Step 4

IMG_0785.JPG
IMG_1838.JPG

1. Click on the default for the keyboard layout

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

Downloading Etcher Software

Etcher.png

1. Download Etcher to format flash driver:

A. Copy image

B. add ssh.txt file

Download Raspberry Pi Hole

IMG_1961.JPG

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

Installing Packages

IMG_9876.JPG

In this step it will be downloading in the Ad blocker

Confirmation on Pi-Hole Install

IMG_5788.JPG
IMG_0201.JPG
IMG_6900.JPG

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

Choose an Interface

IMG_2455.JPG

1.Select: wlan 0

IMG_0971.JPG

1.Select whatever Upstream DNS Provider:

I chose Google

Third Party List in Order Block Ads

IMG_9713.JPG

1.Pick which ever one, I picked StevenBlack

Select Protocols

IMG_7509.JPG

1. Select IPv4 Block ads over IPv4

you pick which ever one that works better for you

Choose Current Network Setting

IMG_8865.JPG

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

IP Conflict Notice

IMG_9108.JPG

1. Press Ok

Do You Wish to Install the Web Admin Interface?

IMG_1616.JPG

1. Click ON

Do You Wish to Install Web Server

IMG_3064.JPG

1. Click ON

Do You Want to Log Queries?

IMG_9308.JPG

1.Click ON

Select a Privacy Mode for FTL

IMG_8044.JPG

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.

Installing Packages

IMG_0695.JPG

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

Installation Complete

IMG_8195.JPG

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.

Change Pi Hole Password

IMG_4195.JPG
IMG_6721.JPG
IMG_5775.JPG

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

Raspberry Page Interface

IMG_2347.JPG

Login Stats

login stats.png

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