• 0 Posts
  • 43 Comments
Joined 2 years ago
cake
Cake day: March 9th, 2025

help-circle
  • Levi@lemmy.catoLinux@lemmy.mlHow can I block websites?
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 months ago

    If redirecting with /etc/hosts isn’t enough, you could set up a cron job (I guess as root?) to re-copy a hosts file back to /etc/hosts every half hour or something. That way even if you do manually change /etc/hosts for an quick peak of an illicit website, it’ll go back to being blocked in a short amount of time. This’ll add a bit of the “pain in the ass” factor.