I already use the hosts file to get rid of entire domains that are time sinks, but some websites that largely are wastes of time (eg reddit) have useful parts. So I'd like to allow www.reddit.com/r/dailyprogrammer but block www.reddit.com/r/all.
Searching online I have a difficulty finding results that aren't simply editing the hosts file, and as far as I understand that only works for entire domains.