Hello, Im just wondering is there any way to restrict a PC with Linux so it can only access certain websites that it has been allowed to access and nothing else? I want to be able to restrict some of our work PC down to just websites that are relevant to our work. Thankyou.
You can always use a firewall. Even ufw, which is pretty simple allows filtering by IP. Keep in mind that to block everything and allow only a few URLs can be very limiting for users or a nightmare to maintain for the admin. https://help.ubuntu.com/community/UFW Another solution might be to use something like OpenDNS. You'll have to change your DNS servers on your router and/or PC. No idea if it can filter by URL in the non-paying version. Still even the free version offers parental controls to limit what you can access, and it is pretty good at blocking porn and things like that. https://www.opendns.com/home-internet-security/
You can also configure with no DNS server, and put URLs of allowed sites and their IPs in a hosts file. then specify outgoing in iptables by IP, maybe just on port 443 for HTTPS, to allowed sites.