Skip to content

Facebook Blocking

Richard Hajek edited this page Aug 14, 2019 · 1 revision

Firstly, create a facebook.json file in /etc/overseer/activities with the following content:

{
	"Limit":"30M"
}

You can change the 30M to any time you desire, with the following format: <number><unit> where unit is always has to be one of following: sSmMhH

Secondly, create the following scripts:

/etc/overseer/scripts/enable/facebook to remove Facebook from Pihole's blacklist

#!/usr/bin/bash

pihole --wild -d facebook.com

/etc/overseer/scripts/disable/facebook to add Facebook to Pihole's blacklist

#!/usr/bin/bash

pihole --wild facebook.com

/etc/overseer/scripts/managers/facebook to detect if Facebook is being used

#!/usr/bin/bash

tail -n 40 /run/log/pihole/pihole.log | grep -Ei "facebook"
Clone this wiki locally