Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What would be the best way to limit Firefox to accessing one domain/site only?
I removed Firefox from my system as I only use it for basic email and that keeps me focused for work. But I’d like to still access one website for work related stuff.
See if AppArmor can do any network limitations. It might not have that capability, yet. Otherwise, you might try to see if you can launch Firefox under a unique group and then have NFtables filter based on that group.
If you know the address (hostname or IP) of the site you want to access and you are able to configure the firewall on your PC, it might be possible to configure the firewall with a custom rule to allow outgoing traffic to port 80 (http) and port 443 (https) that goes to your selected host/site only and block everything to those ports for different sites.
I don't think there is any other way to block it.
Training yourself with the hammer, although painful, would teach the habit quickly and with less trial and error. {except for the hammer strokes of course }.
If you know the configuration you set up, you can change it, whatever it is. The only way is through your own willpower. If that isn't present, you have no hope.
I agree, you probably want to limit access to particualr sites in general, not in FF.
That said, there might be an addon that does what you want.
Or, try one of the options you get when you enter
Code:
firefox --help
on the command line. I think "--ssb" might be what you're looking for.
Some "accidents" could be avoided simply by making the "allowed" site the home page, always opening home page on startup, and making sure FF is not the default web browser.
This use case sounds similar to kiosk mode. Probably more research is required than this one link. For example, you want to ensure your target site does not provide any mechanism to escape it.
Get a hammer. Hit yourself with it whenever you try to access a different site. That's about it.
Quote:
Originally Posted by TriumphantFuture
Tried hammer approach, effective but hard to use This technique while eating finger food And watching YouTube videos
You're looking for a technical solution to what appears to be a behavioral problem. And if you are actually ignoring work and viewing youtube videos, then work on self discipline versus diverge into web searches/side project of trying to adjust the technology to be your brake. Just a suggestion. Another suggestion is figure out how to strike a balance. Most everyone needs some form of downtime. Obviously when people divert into 100% downtime and do nothing productive, they are not worthwhile to their employers and bad things can happen, including dismissal, RIF, or lay-off, they're all the same thing, and further, what next opportunity can you go to if you have developed poor working habits which led to your being discharged from the last job, or an extended list thereof. But some do manage to successfully find adequate time to be recreational, but still manage to be productive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.