Skip to content

shalonjovan/web-block

Repository files navigation

Web Block

Web Block is a minimal, privacy-first Firefox extension designed to help control distraction and reduce addiction by blocking specific websites or sections of websites.

Instead of blocking entire domains, Web Block allows path-level blocking, so you can block only the distracting parts (like YouTube Shorts) while keeping the rest of the site usable.


Features

  • Block specific site sections (path-based blocking)
    • Example: youtube.com/shorts
  • Works with modern SPA websites (YouTube, Instagram, Twitter, etc.)
  • Keyboard-first, minimal popup UI
  • Add rules by pressing Enter
  • View blocked sections in a dropdown list
  • Delete rules using Backspace / Delete
  • Dark mode (persistent)
  • Local-only storage (no tracking, no analytics)
  • Lightweight and fast

Privacy

Web Block does not:

  • Collect any personal data
  • Track browsing activity
  • Send data to any external servers

All rules are stored locally using Firefox’s extension storage.


How It Works

  • The extension listens for page navigations and URL changes.
  • If the current URL matches a blocked rule (host + path), the page is redirected to a local blocked screen.
  • SPA route changes are handled correctly.
  • A safe “Go back” option returns the user to the last allowed page.

About

Web Block is a lightweight Firefox extension that helps you stay focused by blocking distracting websites or specific sections of websites.blocks websites

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors