I am getting really distracted by YouTube recently, but I still need access to YouTube videos. I inadvertently visit youtube.com, and I would like to block this page without blocking the whole site. Is there a uBlock filter that only works on the root page?
With Squid Cache Rule:
acl whitedomains dstdomain -i "/path_to_acl/whitedomains.txt" acl blackdomains dstdomain -i "/path_to_acl/blackdomains.txt" http_access allow whitedomains http_access deny blackdomains
Content of the lists:
/path_to_acl/whitedomains.txt .account.youtube.com .google.com /path_to_acl/blackdomains.txt .youtube.com .googlevideo.com .ytimg.com
Source: Blackweb Project