ray-lothian / block-site Goto Github PK
View Code? Open in Web Editor NEWA browser extension to block website access using hostname matching
Home Page: https://add0n.com/block-site.html
License: Mozilla Public License 2.0
A browser extension to block website access using hostname matching
Home Page: https://add0n.com/block-site.html
License: Mozilla Public License 2.0
I just wanted the alert text and nothing more, like if you use the app to redirect to another url, you're essentially permanently blocked from a website, while on blocked page mode, you can still insert the master password to get yourself out
I was saddened to see that I can not install this for my android. Is there a chance that you could provide this for android?
when blocking takes place it would be nice to be able to extract data about which site got blocked and at what time. As CSV or JSON. Exposed via url
How to redirect from a wildcard to another domain with path?
For example to redirect,
://twitter.com/
to
https://nitter.net/*
Hello, please add cloud sync (Dropbox)
Thanks.
Kiwi browser is the Chrome clone for Android and it supports all Chrome extensions. I already use extensions like uBlock Origin, HoHSER etc.
When I try block-site, the extensions doesn't detect the current tab but sends empty notification that
"Not tab with id: 50."
I#m looking for a tool which allowe me to block protocols, e.g. "file://" or "ftp:" (this is not possible with FF built in functions). Is it possible with Block Site?
Thanks!
Firefox: When I open a New Private Window, Block-Site is not there.
There doesn't appear to be any way to access the options menu on firefox.
Youtube's search function seems to bypass the filter altogether. Using the filter by keyword for 'legs' and then performing a search for 'legs' using the search box on YouTube allows you to load the search results for 'legs' but if you were to copy and paste the url, refresh the page, or access the page by any other means it would be blocked as normal.
The issue is replicable on Instagram too. I could not replicate the problem with Google, Gmail, Yahoo, tumblr, reddit, or Quora searches so It works as intended there.
Hi!
Love the extension, and its simple "just works" functionality. However, the UI I need to interact with to block pages is a bit hard to use. Specifically, I can very easily block the current page, but only if I want to block the entire domain. And if I'm on a whitelist rather than a blacklist, this easy block functionality does nothing.
Instead, to edit the blocklist, I need to go through the following steps:
Then I can go and actually add the site, then save. But 4 steps for my most common action in this plugin seems less than ideal. What would you think of adding a "Configuration" shortcut to the icon's submenu, or maybe even giving an option where clicking on the icon opens the configuration in a new tab, rather than blocking the current website?
Thanks!
I want to allow a site to be viewable during only a certain time slot in the day. This requires being able to set up two time slots of blocking in a day.
The easy way to implement this would be to add a toggle to flip the blocking schedule so that the times entered represent the time slot when a site is allowed to be viewed, rather than when it is blocked.
The more flexible way would be to allow any number of time slots to block in a day.
would be nice if there's an option for blocked site to redirected to previous site
This link opens even though I have disabled the *://*.google.com/*
.
I'm reporting this because there might be other similar links which passes through the filter.
When adding a website, a /
is always added automatically to the end. However, this causes the blocking to sometimes fail:
For example, if I want to block, e.g. www.reddit.com/r/soccer
If I enter the URL, it will become https://www.reddit.com/r/soccer/*
When I visit the website, since the URL in the browser is actually https://www.reddit.com/r/soccer, the rule doesn't match, and the blocking doesn't happen.
Only when I try to visit a subpage, e.g. https://www.reddit.com/r/soccer/comments/aaa, does the blocking happen.
This is especially problematic on Android. You can easily reproduce the issue with Firefox Beta on Android, I believe.
I think this should be easy to fix?
I have no clue why, but it doesn't work on engadget.com. Any reason as to why?
Could it be possible to have just one big textbox to fill in domain to block or allow like the chrome extension SiteBlock 0.2.4. ? That way it is far easier to keep a list somewhere offline or copy it from one to another browser.
In Siteblock 0.2.4 it goes like this:
Help
List the websites you want to block, one per line. For example:
cnn.com
nytimes.com
google.com/news
If you would like to block all sites except for a select few, enter a '*' on the first line and the websites you wish to allow with a '+' before each line. For example:
*
+stackoverflow.com
+msdn.microsoft.com
Is it possible to reduce the shortest time to close a blocked tab to about 1 ms?
Or "open" it invisible?
So it will not appear on the screen...
Thanks for this great AddOn!
Hey, feature request here.
I am using your addon to protect myself from phishing. So I use it kind off like uMatrix (similar to NoScript) where I unblock the web as I "discover" it. Meaning when I am about to visit an undiscovered site it gets blocked by this addon and I need to manually check the URL (see whether it is spelled right and not a phishing domain). When the URL is good, I want to be able to easily/quickly add it to the whitelist, as I will do this quite frequently. Clicking the addon icon would be a ok-solution (once this bug is fixed), but I would love if this plugin took it one step further in terms of UserExperience and had the following added to its blocking screen:
*://*github.com*/*
. So it behaves like the addon icon.And also: great addon, I love the simplicity!
I see
"strict_min_version": "57.0"
First impressions, with Waterfox 56.2.7.1 (Waterfox 56.0 was based on Firefox 56.0.2): the extension does seem to work. Off the top of your head, do you know which features of 0.1.9 might be incompatible?
I can easily install 0.1.6 https://addons.mozilla.org/firefox/downloads/file/1149295/block_site-0.1.6-an+fx.xpi but I'm curious about the more recent version.
As far as I can tell, there is no mention of a license anywhere in this repository (though I might just be tired).
Could you please mention the license in the repository?
The GNU project recommends to put a notice in every source file, but this is your choice.
Thanks!
Edit: Some removals, and minor edits, didn't realize when posting that the license of this project is mentioned on addons.mozilla.org.
If you edit the DOM element of the buttons in the settings, you can bypass the master password. E.g. json import is disabled (because importing overwrites the master password if hash isn't specified) because you've set a master password, if you edit the DOM element and remove disabled=""
or change it to enabled=""
, it allows you to import a json because there's no security check.
Presumably, this can be bypassed by generating a security token once the master password has been inputted and accepted that lasts for the entire session; as long as the page is open or for a certain amount of time. This would be nice if it was configurable.
I tried installing Block Site 0.21 for Opera and it didn't work -- no Block Domain option appeared when I right click. I then installed version 0.18 and the right-click option to Block Domain is there and works. However, when I go to the Block Site Options Page, none of the domains I blocked is listed if I wanted to unblock them.
I set up block-site weeks ago on my kids profiles and it blocked as expected.
But when I now logged into their profiles I was able to use unrestricted internet for 15 minutes - what is going on here???
Clicking the addon icon while in whitelist mode only adds addon-address (moz-extension://[...]/
) to the whitelist! I do not think that is intended and I would love to see it add the domain the user is about to access to the whitelist with a configurable wildcard setting for subdomains, paths and params instead.
chrome version: 87.0.4280.88
Will not redirect blocked sites when accessed from hyperlinks, instead chrome shows: ERR_BLOCKED_BY_CLIENT
FAQ # 9 specifies the proper location for the policies.json file, but I believe that only applies to PCs. If it is possible to prevent the extension from being disabled or uninstalled from Firefox running on Android, what are those Android-specific instructions? (I cannot find a Firefox installation directory on my Android phone.) Thanks.
After a bit of testing it seems that the advised "*://*keyword*/*
" variation, to specify domain-part only blocks, also acts on the url path.
In general this is not something that would show up quickly.
(really rare, when one is using something like "*://*google.com*/*
")
But when trying to block a specific net designator (ie: ".com" or ".nl") this will have a higher level of triggering the occasional bad blocking cases when "com" or "nl" is precent in the url-path.
(a issue for sites that make use of random id's in there paths. Like for example google's gmail pages)
Example:
*://*.nl*/*
"Workaround:
Although I could not find any info about potential character escaping support in/for Block-site. Escaping the leading dot in the domain-block spec seems to do the trick.
*://*\.nl*/*
"The issue, if any ... not sure.
Could be seen as (the intended) domain-blocks being a bit to greedy.
Or the domain-block doc needing a bit of additional info.
(Tested against Block-Site version 0.2.2.1)
How to reproduce:
iframe
(e.g. an article with a YouTube link such as https://www.diffen.com/difference/Router_vs_Switch)Expected behaviour:
iframe
contents are blocked but the parent tab remains open.Actual behaviour:
Hello,
I'm trying to block all sites, except for 1 site for 1 hour a day. I thought if i said to block that 1 site for the specified hours each day, the reverse mode would reverse it so that is the only site available during those hours and no other sites are available outside of those hours. Basically it would be block all site except for this site during that hour.
What I'm gathering is the schedule just turns off the extension all together.
I'm wondering, is there any way to achieve what I'm trying to do - have all site blocked all hours of the day, except for one hour of the day where just one site is available.
Many of the sites I block for productivity I would like to access on leisure time, and having to re-enter master passwords makes for a bad UX. The ability to pause blocking on-demand would make that use case considerably smoother
Attempting to redirect a blocked website to a local file does not work.
Thanks for such a great tool.
Can you please share the location of the configuration file?
I am considering changing it programatically to reward children according to their performance on another app.
PS: I am using Firefox on Windows 10.
First of all, thanks for this nice plugin.
Every time I edit the options Page I forget to save the options. First I thought the app is not working, than I figured out that there is a save button, but still I tend to forget this. Specially when you add some regex this is annoying.
Whenever i input a password to restrict access to the options and hit 'save', it dosen't work. There is no "saved successfully" answer
Can you add the wildcare blocking option to the mobile version? I don't see it there now.
For example, I want to block
https://www.youtube.com/
But allow
https://www.youtube.com/results?search_query=abc
Thanks.
It would be nice to directly edit a rule and not to do copy, edit, delete the old one and than forget to save #24.
Add-on doesn't close the tab or window automatically as it should. I put 1 instead of 0 in options, so it must close the blocked tab after 1 second. After blocking a website it starts counting from 1 second to zero then instead of closing continue counting in minus. Infinitely.
Hello,
I would be grateful if you could help me to make Block-Site work.
I installed it (tried several times, also restarting Firefox) but it does not accept any input.
Icon method:
I visit a website I want to block, click on the W icon, the popup asks me confirmation that I want to block that website, I accept, but nothing changes. It's as though I never did the procedure.
I open Block-Site settings, manually enter the url of a website I want to block, I click the Add button but it ignores my clicks, as if I didn't write anything in the field, or as if I didn't click the button. I tried with several different sites, both writing and not writing "http" and "www".
I create a TXT file of files to block according to instructions, I click on the "Import Rules (TXT File)" button, but it does absolutely nothing, as if the button doesn't exist.
Any clue of what might be going on?
Thanks so much.
It may be more "secure" if the password is store hashed.
HI,
Great extension, using whitelist mode to prevent my son from wasting time during classes. Unfortunately, looks like whitelisting only works for FQDN in URL, so I have to do multiple unblocks when trying to add any new site. E.g., he needed access to smartmusic.com, but to get it completely working, I had to also add explicitly asm.smartmusic.com, auth.smartmusic.com, admin.smartmusic.com, etc. which was unwieldy.
While using the extension, the site does not block the sites within a certain time but blocks all the time. Only the sites I have listed are blocked 24/7, instead of the time frame I have listed.
Attached is my preference file, unless I have something set wrong. I changed it from .json
to .txt
so I could upload it here.
block-site-preferences-3.txt
Hey, really like this extension, much better than a couple of the others I tried, which were shockingly bad.
But I do have one issue: the "only block sites between" feature doesn't seem to be working. When I type in a time into the box, the -- get replaced by what I type, but when I get to the last pair of --, it no longer takes the input and replaces the dashes. Then it doesn't save any of what I entered and it all reverts to --.
Sort of the same story with days, that doesn't seem to affect what is blocked/not blocked, everything on the list is still blocked regardless of changing that setting. I'm also not sure whether those are days that it is blocked or days that it isn't blocked, because right next to Days: it says Exception List:, but the instructions in the FAQ seem to imply that those, like the time, are also specifying when they are blocked. Any help navigating these issues would be awesome. Thanks in advance!
Hi - I have been using block-site with no problems for months now, but recently it began misbehaving. it still blocks the requested sites, but now it is blocking them at any and all hours, not just within the specified time window. I am using version 0.3.2 in firefox 80.0.1 (64-bit) on a windows 10 system. Any suggestions? thanks.
Is it possible to block a particular domain type ?
Like for example "*.google.com/".
... (ie: blocking all url's that contain ".google.com" in the domain name) ... + (including the domain without trailing/closing "/")
... (or, for example blocking any and all ".com" domains)
Would be a nice thing if this was possible ... especial this week.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.