knox / HOSTS-readme-17.txt
0 likes
0 forks
1 files
Last active
1 | hosts: cache files dns |
knox / HOSTS-readme-16.sh
0 likes
0 forks
1 files
Last active
1 | sudo sysrc nscd_enable="YES" |
2 | sudo service nscd start |
knox / HOSTS-readme-15.bat
0 likes
0 forks
1 files
Last active
1 | ipconfig /flushdns |
knox / HOSTS-readme-14.sh
0 likes
0 forks
1 files
Last active
1 | updateHostsWindows.bat |
knox / HOSTS-readme-13.nix
0 likes
0 forks
1 files
Last active
1 | { |
2 | networking.stevenBlackHosts = { |
3 | blockFakenews = true; |
4 | blockGambling = true; |
5 | blockPorn = true; |
6 | blockSocial = true; |
7 | }; |
8 | } |
knox / HOSTS-readme-12.nix
0 likes
0 forks
1 files
Last active
1 | { |
2 | inputs.hosts.url = "github:StevenBlack/hosts"; |
3 | outputs = { self, nixpkgs, hosts }: { |
4 | nixosConfigurations.my-hostname = { |
5 | system = "<architecture>"; |
6 | modules = [ |
7 | hosts.nixosModule { |
8 | networking.stevenBlackHosts.enable = true; |
9 | } |
10 | ]; |
knox / HOSTS-readme-11.nix
0 likes
0 forks
1 files
Last active
1 | { |
2 | networking.extraHosts = let |
3 | hostsPath = https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts; |
4 | hostsFile = builtins.fetchurl hostsPath; |
5 | in builtins.readFile "${hostsFile}"; |
6 | } |
knox / HOSTS-readme-10.txt
0 likes
0 forks
1 files
Last active
1 | # block doubleClick's servers |
2 | 0.0.0.0 ad.ae.doubleclick.net |
3 | 0.0.0.0 ad.ar.doubleclick.net |
4 | 0.0.0.0 ad.at.doubleclick.net |
5 | 0.0.0.0 ad.au.doubleclick.net |
6 | 0.0.0.0 ad.be.doubleclick.net |
7 | # etc... |
knox / HOSTS-readme-9.sh
0 likes
0 forks
1 files
Last active
1 | python3 updateHostsFile.py [--auto] [--replace] [--ip nnn.nnn.nnn.nnn] [--extensions ext1 ext2 ext3] |
knox / HOSTS-readme-8.sh
0 likes
0 forks
1 files
Last active
1 | python3 testUpdateHostsFile.py |