You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bkf2020 8ce93d0bdc Fix Minor Grammar Mistake 5 months ago
icons Add an icon for the extension 5 months ago
.gitignore basic extension that redirects websites to blocked.html 5 months ago Not publishing extension on the chrome web store since publishing requires a $5 fee 5 months ago
LICENSE Initial commit 5 months ago Fix Minor Grammar Mistake 5 months ago
background.js update copyright year 5 months ago
blocked.html add style to blocked.html; restructure file 5 months ago
icon.jpg Update goals and add icon.jpg file 5 months ago
index.html update copyright year 5 months ago
manifest.json Add description and version number 5 months ago
openOptions.js update copyright year 5 months ago make exectuable 5 months ago
rules.js Create an alarm even if the time the alarm was created is in the past 5 months ago
setrules.html Add clearer instructions to creating rules 5 months ago
style.css Add clearer instructions to creating rules 5 months ago


libre website blocker to help you stay focused. set times you want to prevent access to a website


getting started

  1. install the extension (see for more details).
  2. right click on the extension to open the options page
    • or click on the extension icon, and press the button to open the options page
  3. set your rules by following the instructions on the options page
  4. set a time to start blocking (scroll down on the options page)
  5. press "start blocking" to start blocking!


This extension DOES NOT collect ANY user data. This extension needs to "read your browsing history" because when you start blocking, it scans your tabs and makes sure any tabs with blocked websites are blocked. The extension prevents you from opening a website by using the declaractiveNetRequest ( ) API, but this API cannot block websites you have already opened!

The extension DOES NOT send any DATA about you to any server, and all code is available online and is available under the GNU public license, version 3:


Some code was taken from The license is CC-BY-SA-4.0 and it is allowed to license that under GPL.

The file icon.jpg is under CC0 and is from public domain pictures.

The files in the folder icons are also under CC0, since it is just the original picture resized.


  • Allow users to update rules with UpdateRuleOptions
  • Use storage API to allow users to store rules
  • Add a background task that checks if the time the user set has passed (using alarm api)
  • Allow whitelisting websites?
    • Tried whitelisting a youtube playlist, but that allows the user to browse YouTube
      • Use the tab api?
  • Use a table to display setrules.html
  • When a user presses start, close all blocked websites with the tab api
  • Allow users to press enter to enter a new rule
  • clear dynamic rules when time expires
  • Maybe query tabs instead of using declarativeNetRequest and see which tabs need to be closed/redirected
  • Use a better theme for the extension
  • Clean up the code
    • Use better names for files
    • Use simpler logic if possible
  • Branding: create an icon, description
  • Privacy: tell users why the extension needs certain permissions
  • Show users which websites they block on setrules.html