I need for a given time period to put a speedbump against my tendency to be distracted by ad hoc web searches while working. I don't want to block LAN traffic because I keep a git server on one of my LAN hosts.

One implementation might be to install a firewall rule with an expiry time or time-to-live. I have UFW. There will be other solutions I'm sure.

  • Unclear on if your asking for a solution on your desktop or on a network firewall. Try closing firefox/chrome/chromium/opera/... on your desktop and you will no longer be distracted. – doneal24 Dec 8 '18 at 20:17
  • If a firewall fix then it will for a specified length or time block requests from my workstation to any location outside the LAN. I can easily open a browser instance on a whim, without premeditation, so I'm looking for a harder speedbump. Something that will require extra effort to disable. – Stephen Boston Dec 8 '18 at 21:35

You could use the proxy settings in Firefox. Here I assumed that your local network is, but you have to adapt that to your own case.

Firefox proxy settings

| improve this answer | |
  • That is a very cool idea, but I'm hoping for a solution with some expiry, and preferabley a one-click or command. I see there is a CLI for firefox and chrome that access proxy settings. Perhaps there is something there that could be scripted on a timer. – Stephen Boston Dec 11 '18 at 12:49
  • I understand, but there doesn't seem to be an easy way to change that on the fly. Actually the best way might be to tick system proxy and change the proxy settings using gsettings as there using a cron or something. – Pierre-Alain TORET Dec 11 '18 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.