penge/block-site

Block Websites only in in incognito mode

Closed this issue · 6 comments

Hi,

Would it possible to block certain websites only in the incognito mode?

penge commented

Yes, this is possible. How would you like to use it? Currently, we define sites in one big textbox. We would probably need to move from this and define each site idependently, so we can attach some options to it.

It could look as follows:

  1. Type the site you'd like to Block into an input.
  2. Pick Context (Normal window only, Incognito window only, Any window) via a dropdown (can be edited once the site is added).
  3. Click on the Block button to block the site.

Blocked site would then be added to the list. The site woudn't be editable once added, but could be removed from the list. The Context would be editable per site at any time.

What do you think?

I think this would be great for my use case. On the other hand, this might be unnecessary work for you and may not be useful for other people.

Perhaps allowing the context to include the time in which it is blocked would allow you to shoot two birds with one stone.

penge commented

It woudn't be an issue to add this feature.

I'd like to suggest an alternative method of handling this, rule blocks.

Rule blocks are blocks of block rule text(tongue twister?) which you can set rule context on and are applied in cascade.

rule contexts could be:

  • allow only in incognito(I might want to keep my history clean and be sure it's impossible to make a mistake)
  • don't allow in incognito
  • Schedule enable and disable(enable daily from 14 to 19/enable now for 2 hours)
  • Counter enabler(enable rule if sites from the rule set are opened X times)
  • Allow time enabler(Allow access for 2 hours daily)
  • And more. It's possible to overlap(cascade) rules for more complex effects (rule set is enabled from 18 to 23 but you can only access for two hours)

This also could cover #39

penge commented

blocks are blocks of block rule text

haha, really a tongue twister. It's tricky because, do we allow blocking or we block allowing? 😄

Thank you for the suggestions.

Having one question. Is there a case where we would like to allow page in incognito, but block in normal window? I'd say, we always block everywhere, and optionally allow in incognito. But honestly, if I block youtube, but can open it in incognito, doesn't it go against the purpose?

Limited time access (like 2 hours daily): We would have to track every tab when activated, check if there is page open that we plan to block, and start/continue tracking spent time. This is not something I'd plan to do.

Limited opened count (can open 10x a day let's say), or blocking during some days/hours, sounds ok.

As far as I can see the original request is still not possible. It's okay if it is not planned, but just wanted to point that out.