Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: cedm5cd on February 15, 2026, 02:54:27 PM

Title: How can i block modern usage of internet with this post exception?
Post by: cedm5cd on February 15, 2026, 02:54:27 PM
This post exception is modern usage of outlook.com, chatgpt.com and reddit.com websites in Tinycorelinux CorePlus version 16.2?
Title: Re: How can i block modern usage of internet with this post exception?
Post by: cedm5cd on February 15, 2026, 02:59:20 PM
i forget to mension i want also to just allow mdoern usage of kmeleonbrowser.org and https://msfn.org/
Title: Re: How can i block modern usage of internet with this post exception?
Post by: cedm5cd on February 15, 2026, 03:35:17 PM
i forgot to mention i just also want to allow modern usage of tinycorelinux.net
Title: Re: How can i block modern usage of internet with this post exception?
Post by: cedm5cd on February 16, 2026, 04:58:02 PM
Did I do something to not be helped?
Title: Re: How can i block modern usage of internet with this post exception?
Post by: cedm5cd on February 16, 2026, 05:07:13 PM
The reason why i used more than one reply is because i didn’t know that i could edit replies and how to do it, now that i know the answer to both question i wont’t reply more than once on posts
Title: Re: How can i block modern usage of internet with this post exception?
Post by: GNUser on February 16, 2026, 08:42:53 PM
Hi cedm5cd. It sounds like you want a domain whitelist, which may be a bit tricky to implement (a blacklist would be simpler).

A naive solution is to put the domain names and ip addresses of the sites you want into /etc/hosts, so that it looks like this (add the other domains you want, one per line--there are many ways to get the ip address, simplest way is "nslookup blahblahblah.org"):

Code: [Select]
127.0.0.1 box localhost localhost.local

kmeleonbrowser.org 216.105.38.10
tinycorelinux.net 128.127.66.77
msfn.org 151.106.17.234

Then disable DNS by changing /etc/resolv.conf to this:
Code: [Select]
nameserver 0.0.0.0

You probably want to make /etc/resolv.conf immutable (to prevent network managers etc. from adding a dns server to it):
Code: [Select]
sudo chattr +i /etc/resolv.conf

You'd also need some mechanism to periodically update /etc/hosts, because the ip address associated with each domain may change.

Other users may have a better solution, but I think the above would work.



Title: Re: How can i block modern usage of internet with this post exception?
Post by: Rich on February 16, 2026, 10:13:47 PM
Hi cedm5cd
Did I do something to not be helped?
No.
Sometimes it takes a while for someone with an answer to respond.
Sometimes no knows the answer to someones question.