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

[Help] Youtube.com not blocked #1713

Open
Septias opened this issue Feb 22, 2025 · 0 comments
Open

[Help] Youtube.com not blocked #1713

Septias opened this issue Feb 22, 2025 · 0 comments

Comments

@Septias
Copy link

Septias commented Feb 22, 2025

I want to block youtube, instagram, ... with blocky but it doesn't work sadly :/

This is my nix configuration:

blocky = {
      enable = true;
      settings = {
        upstreams.groups = {
          default = ["1.1.1.1" "8.8.8.8"];
        };
        ports = {
          http = 4000;
          https = 443;
        };
        blocking = {
          denylists = {
            ads = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"];
            social = ["${../social-blocking.txt}" ''
              instagram.com
              youtube.com
              facebook.com
              reddit.com
            ''];
          };
          allowlists = {
            music = ["${../music-allow.txt}"];
          };
          clientGroupsBlock = {
            default = ["ads" "social"];
          };
        };
      };
    };

The social blocking file has this content:

instagram.com
youtube.com
facebook.com
reddit.com

What am I missing to make this work?

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