From ba172c51b901a6bc52fe276b5738b433615accff Mon Sep 17 00:00:00 2001 From: Krzysztof Rudnicki Date: Fri, 27 Dec 2024 21:49:30 +0100 Subject: [PATCH] feat: block websites uising etc hosts --- hosts/hosts | 16 ++++++++++++++++ hosts/install.sh | 3 +++ 2 files changed, 19 insertions(+) create mode 100644 hosts/hosts create mode 100644 hosts/install.sh diff --git a/hosts/hosts b/hosts/hosts new file mode 100644 index 0000000..c63046e --- /dev/null +++ b/hosts/hosts @@ -0,0 +1,16 @@ +# Static table lookup for hostnames. +# See hosts(5) for details. +# + +127.0.0.1 store.steampowered.com +127.0.0.1 steamcommunity.com +127.0.0.1 help.steampowered.com +127.0.0.1 api.steampowered.com +127.0.0.1 media.steampowered.com +127.0.0.1 cdn.steampowered.com +127.0.0.1 client-download.steampowered.com +127.0.0.1 steampowered.com +127.0.0.1 steamcdn-a.akamaihd.net +127.0.0.1 steamgames.com +127.0.0.1 cdn.akamai.steamstatic.com +127.0.0.1 cdn.cloudflare.steamstatic.com \ No newline at end of file diff --git a/hosts/install.sh b/hosts/install.sh new file mode 100644 index 0000000..fefa1a7 --- /dev/null +++ b/hosts/install.sh @@ -0,0 +1,3 @@ +!#/bin/bash +sudo cp hosts /etc/hosts +sudo systemd-resolve --flush-caches