about summary refs log tree commit diff
path: root/tools/website-blocker/rules.json
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-28T19·36+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-28T19·36+0000
commit37bb04eb5d7c9ccd77926f107ca685039a010e43 (patch)
treef2e5dc3cb330c62741422ef8436f2845d125d6e4 /tools/website-blocker/rules.json
parent778114e6a8930017b82ed8c1a68240a534a1bef5 (diff)
Start social-fasting app
I'd like to ensure that my /etc/hosts file blocks websites at certains times. I
use this to allow / disallow websites at various times of the day.

TODO:
- Add project README
- Add tests
- Publish
- Create a Nix derivation
- Run as a systemd timer unit
- Figure out if I can run this as a user rather than root
Diffstat (limited to 'tools/website-blocker/rules.json')
-rw-r--r--tools/website-blocker/rules.json26
1 files changed, 26 insertions, 0 deletions
diff --git a/tools/website-blocker/rules.json b/tools/website-blocker/rules.json
new file mode 100644
index 000000000000..42094a7cdd14
--- /dev/null
+++ b/tools/website-blocker/rules.json
@@ -0,0 +1,26 @@
+[
+  {
+    "urls": [
+      "facebook.com",
+      "www.facebook.com",
+      "twitter.com",
+      "www.twitter.com",
+      "youtube.com"
+      "www.youtube.com"
+      "instagram.com"
+      "www.instagram.com"
+    ],
+    "allowed": []
+  },
+  {
+    "urls": [
+      "chat.googleplex.com"
+    ],
+    "allowed": [
+      {
+        "day": "Tuesday",
+        "timeslots": []
+      }
+    ]
+  }
+]