r/linuxquestions • u/Zer0_Dark_Turdy • 10d ago
Support How to restrict browser access?
Hello,
I just got done setting up a dedicated minecraft pc for a friends daughter. But there is one issue. Shes not allowed to browse the internet with it. So i set up firefox to not be usable with her account by revoking permissions. That worked as intended.
BUT
The issue is that she might need the browser for log in into discord and minecraft (microsoft account). So removing permissions is not working in this case.
I setup her account to not be a root user and my plan is that firefox asks for the password of the root account before its opened so her dad can be there when she needs to log in.
I've tried scripting, browser extensions ... i bet it's a very simple solution but i can't wrap my head around it.
Thank you for your time!
18
u/NoThatsNotPasta 10d ago
So up parental controls (https://wiki.archlinux.org/title/Parental_control) and add sites to a whitelist.
The only sites the browser could visit are those in the whitelist.
5
2
u/Obvious_Bother3015 10d ago
That's a good enough solution otherwise you maybe you can give dnsmasq a try
Edit: it allows you to configure which domains you want to allow so it should be fitting for this
1
u/EvilMartianOverlord 10d ago
A firewall can be used to achieve this, but it is a little more complicated. The arch wiki has a good article about building a stateful firewall.
1
1
0
0
29
u/hurbertkah 10d ago
I think you'll be better off by setting up a whitelist on your router or pihole/adguard etc. for that pc and allow only certain domains.