LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 10-22-2020, 10:18 PM   #1
TriumphantFuture
LQ Newbie
 
Registered: Sep 2020
Posts: 5

Rep: Reputation: Disabled
Question How to limit Firefox to one website only?


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.

How can I make this limitation in Linux Mint?

Thanks chaps!
 
Old 10-22-2020, 10:33 PM   #2
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
Get a hammer. Hit yourself with it whenever you try to access a different site. That's about it.
 
1 members found this post helpful.
Old 10-22-2020, 10:40 PM   #3
TriumphantFuture
LQ Newbie
 
Registered: Sep 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Tried hammer approach, effective but hard to use This technique while eating finger food And watching YouTube videos
 
Old 10-22-2020, 10:44 PM   #4
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,319
Blog Entries: 3

Rep: Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725Reputation: 3725
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.
 
Old 10-22-2020, 11:36 PM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
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 }.
 
Old 10-22-2020, 11:43 PM   #6
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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.
 
Old 10-23-2020, 05:14 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Turbocapitalist View Post
See if AppArmor can do any network limitations.
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.
 
1 members found this post helpful.
Old 10-23-2020, 10:55 AM   #8
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,609

Rep: Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552Reputation: 2552

The default uMatrix rules will block everything, then whitelist certain css/images and 1st party requests:
Code:
* * * block
* * css allow
* * frame block
* * image allow
* 1st-party * allow
* 1st-party frame allow
I wonder what would happen if those were commented out and replaced with:
Code:
example.com example.com * allow
It wouldn't prevent a Firefox user from modifying the rules to enable whatever sites they wanted, but (if it works) should block accidental browsing.

 
Old 10-24-2020, 08:26 PM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,818
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
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.
 
1 members found this post helpful.
Old 10-26-2020, 12:10 PM   #10
bgstack15
Member
 
Registered: Jul 2017
Distribution: korora
Posts: 90

Rep: Reputation: Disabled
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.
 
Old 10-26-2020, 01:08 PM   #11
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by sgosnell View Post
Get a hammer. Hit yourself with it whenever you try to access a different site. That's about it.
Quote:
Originally Posted by TriumphantFuture View Post
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.
 
1 members found this post helpful.
  


Reply

Tags
domain, firefox, mint



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Quota doesn't report any warning even if the soft limit is crossed. Only reports the warning for hard limit karteekchalla Linux - Server 3 04-28-2020 12:22 AM
how to limit ftp access to root and one username only? RMLinux Linux - Newbie 5 12-02-2008 07:28 PM
Can I limit Internet to only one website or password protect it ? skr Linux - Security 6 08-15-2008 07:52 AM
squid, limit bandwidth to one website.. scoob8000 Linux - Software 0 09-17-2004 07:59 AM
limit browser to one website tarheel92x Linux - Security 1 04-26-2004 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration