- Copy
script.sh
to/home/pi/script.sh
. - Edit the script and replace with any domain you want to block. These go under the variable
list
. - Schedule the script in cron. See
crontab example.sh
for an example.
script.sh block
to add to the blacklist and script.sh unblock
to remove.