Time blocking!

It would be very helpful to specify the start time and end time for blocking a domain, for example: windowsupdate.com - enabling it during the day and during the day it would be blocked, thus avoiding update traffic at the time of service. Grateful for the help!

I can't see this as being a high priority feature to add to Pi-hole, however I can offer the following thought:

You should be able to do this yourself without touching the Pi-hole code. The way I would do this is to set up a couple of cron jobs. One to blacklist, and one to remove the blacklist entry.

e.g at 09:00 run pihole -b domainiwanttoblock.com, then at 18:00 run pihole -b -d domainiwanttoblock.com to remove it.

You can read more about using cron here:

2 Likes