Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing subdomains? #4

Open
a-t-0 opened this issue Jul 28, 2020 · 0 comments
Open

Allowing subdomains? #4

a-t-0 opened this issue Jul 28, 2020 · 0 comments

Comments

@a-t-0
Copy link

a-t-0 commented Jul 28, 2020

Thank you for your beautiful work on this productivity support system!

I am not sure whether the following feature already exists, in which case I have not yet determined how to implement it or, whether it can be implemented.

Feature Request

  1. Would it be possible to allow subdomains like *somesite.com/groups/* whilst either blocking the domain *somesite.com?
  2. Would it be possible to allow subdomains like *somesite.com/groups/* whilst either blocking blocking subdomains *somesite.com/feed/*?

Attempt 0.

To test whether I could enable the existing implementation on I used the info under heading "Android" from instructions in this link: https://web.archive.org/web/20200415103714/https://energized.pro/instructions/#sh to try to see if I was able to allow a specific subdomain whilst the parent domain is blocked with the following local host file:

# --------------------------------------------
# L O C A L  H O S T
# --------------------------------------------
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 local
255.255.255.255 broadcasthost
::1 localhost
::1 ip6-localhost
::1 ip6-loopback
fe80::1%lo0 localhost
ff00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
0.0.0.0 0.0.0.0
# --------------------------------------------
0.0.0.0 www.facebook.com
Ex. *.facbook.com/groups*

Expected behavior:

Visiting www.facebook.com is not possible/blocked, but visiting www.facebook.com/groups is allowed.

Observed behavior:

Visiting www.facebook.com is not possible/blocked, and visiting www.facebook.com/groups is also blocked.

Attempt 0.

To test whether I could enable the existing implementation on I used the info under heading "Android" from instructions in this link: https://web.archive.org/web/20200415103714/https://energized.pro/instructions/#sh to try to see if I was able to allow a specific subdomain whilst the a different subdomain domain is blocked with the following local host file:

# --------------------------------------------
# L O C A L  H O S T
# --------------------------------------------
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 local
255.255.255.255 broadcasthost
::1 localhost
::1 ip6-localhost
::1 ip6-loopback
fe80::1%lo0 localhost
ff00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
0.0.0.0 0.0.0.0
# --------------------------------------------
0.0.0.0 www.facebook.com/feed
Ex. *.facbook.com/groups*

Expected behavior:

Visiting www.facebook.com/feed is not possible/blocked, but visiting www.facebook.com/groups is allowed and visiting www.facebook.com/events is allowed.

Observed behavior:

Visiting www.facebook.com/feed is possible/blocked, and visiting www.facebook.com/groups is also possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant