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
This commit is contained in:
parent
778114e6a8
commit
37bb04eb5d
3 changed files with 143 additions and 0 deletions
26
tools/website-blocker/rules.json
Normal file
26
tools/website-blocker/rules.json
Normal file
|
|
@ -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": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue