{"id":28310404,"url":"https://github.com/evanedwards/bl","last_synced_at":"2026-06-09T16:02:53.866Z","repository":{"id":231800980,"uuid":"782769289","full_name":"EvanEdwards/bl","owner":"EvanEdwards","description":"Simple hosts blacklist script in bash","archived":false,"fork":false,"pushed_at":"2024-05-09T19:00:50.000Z","size":2905,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T06:08:18.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EvanEdwards.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-06T01:47:06.000Z","updated_at":"2024-05-09T19:00:53.000Z","dependencies_parsed_at":"2025-06-21T11:41:34.225Z","dependency_job_id":null,"html_url":"https://github.com/EvanEdwards/bl","commit_stats":null,"previous_names":["evanedwards/bl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EvanEdwards/bl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanEdwards%2Fbl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanEdwards%2Fbl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanEdwards%2Fbl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanEdwards%2Fbl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvanEdwards","download_url":"https://codeload.github.com/EvanEdwards/bl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvanEdwards%2Fbl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34114437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-24T11:11:07.280Z","updated_at":"2026-06-09T16:02:53.832Z","avatar_url":"https://github.com/EvanEdwards.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# bl\n\n`bl [CMD [CMD]...]`\n\nA simple script to quickly manage a blacklist line in /etc/hosts.\n\n\n# Demonstration\n\n![Screen Recording](bl-demo.gif)\n\n\n# Installation\n\n1. Copy `src/bl` to some place like `$HOME/.local/bin`\n2. Add the following two lines to `/etc/hosts`:\n\n```\n#!bl key:domain key2:domain2\n127.0.130.1 blacklisted\n```\n\nThe #!bl line lists a set of key:value pairs that are used on the command line.  For instance, `fb:facebook.com` allows you to blacklist facebook.com and www.facebook.com with `bl fb` and then remove it with `bl -fb`.   You can always directly add or remove a full domain with `@` or `^`.\n\nOptional: The file and ip address can be altered by editing the script.\n\n\n# Operations\n\n```\n  key     - Same as +key\n  +key    - Add domain corresponding to available key\n  -key    - Remove domain corresponding to available key\n  @domain - Add domain\n  ^domain - Remove domain\n```\n\n\n# TODO\n\n- [ ] Clear all\n- [ ] Groups?  Personally I use bash aliases for groups of domains, so there is no built in option for a group of domains.\n\n\n\n# Legal\n\nCopyright 2024 Evan Edwards \u003cevan@cheshirehall.net\u003e\n\nReleased under an open source MIT License.  See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanedwards%2Fbl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevanedwards%2Fbl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevanedwards%2Fbl/lists"}