From 059af12bea03eef4616cbf47fa60890c14e9049a Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 29 Mar 2020 00:01:51 +0000 Subject: [PATCH] Experiment with user /etc/hosts I have not been able to get this to work yet, but I hear that it is possible to maintain a user-specific /etc/hosts. --- tools/website-blocker/.envrc | 2 ++ tools/website-blocker/hosts | 1 + 2 files changed, 3 insertions(+) create mode 100644 tools/website-blocker/.envrc create mode 100644 tools/website-blocker/hosts diff --git a/tools/website-blocker/.envrc b/tools/website-blocker/.envrc new file mode 100644 index 000000000..81755b513 --- /dev/null +++ b/tools/website-blocker/.envrc @@ -0,0 +1,2 @@ +source_up +export HOSTALIASES="$(realpath ./hosts)" diff --git a/tools/website-blocker/hosts b/tools/website-blocker/hosts new file mode 100644 index 000000000..0cf45e595 --- /dev/null +++ b/tools/website-blocker/hosts @@ -0,0 +1 @@ +127.0.0.1 wsj.com www.wsj.com \ No newline at end of file