Say you were a guardian or parent and get to decide when a child can get a phone or use a computer and get internet with it. If you wish you can also install software and change router settings to what you see fit.

Some parents decide to forbid the internet completely, others are more relaxed. Some go the helicopter route, and some do not care whatsoever what their kid does online.

What is your policy on letting a child use the internet?

  • utopiah@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    15 hours ago

    crontab, it’s enough to :

    • kill any add during specific period
    • accumulate usage per app
    • check if tabs are opened

    and it’s pretty straighforward to configure, e.g.

    * 8-17 * * 1-5 killall SlayTheSpire && date >> ~/shame
    # prevents from playing during weekday working hours
    

    or for accumulation (which can be reset daily, weekly, etc by simply deleting the minutes file)

    pgrep mpv && >> mpv_minutes; if [ $(wc -l mpv_minutes) -gt 1000 ]; then echo beyond threshold; fi
    

    That works also for turning up/down network interfaces.

    PS: I use this on myself. I’m not a child but I don’t have perfect self control. It works.