{"id":16971756,"url":"https://github.com/juancarlospaco/nim-dnsprotec","last_synced_at":"2026-03-06T07:01:35.825Z","repository":{"id":151515537,"uuid":"218600594","full_name":"juancarlospaco/nim-dnsprotec","owner":"juancarlospaco","description":"DNS /etc/hosts file manager, Block 1 Million malicious domains with 1 command","archived":false,"fork":false,"pushed_at":"2019-11-04T10:55:51.000Z","size":128,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-26T14:43:44.246Z","etag":null,"topics":["alpine","antispam","arch-linux","dns","docker","hosts-file","hosts-file-edit","hostsfile","linux","mac"],"latest_commit_sha":null,"homepage":"","language":"Nim","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/juancarlospaco.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"liberapay":"juancarlospaco","custom":["https://liberapay.com/juancarlospaco/donate","https://streamlabs.com/juancarlospaco"]}},"created_at":"2019-10-30T18:55:13.000Z","updated_at":"2022-09-10T19:32:46.000Z","dependencies_parsed_at":"2023-05-18T21:45:26.263Z","dependency_job_id":null,"html_url":"https://github.com/juancarlospaco/nim-dnsprotec","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/juancarlospaco/nim-dnsprotec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-dnsprotec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-dnsprotec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-dnsprotec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-dnsprotec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juancarlospaco","download_url":"https://codeload.github.com/juancarlospaco/nim-dnsprotec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juancarlospaco%2Fnim-dnsprotec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30164881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["alpine","antispam","arch-linux","dns","docker","hosts-file","hosts-file-edit","hostsfile","linux","mac"],"created_at":"2024-10-14T00:54:26.280Z","updated_at":"2026-03-06T07:01:35.792Z","avatar_url":"https://github.com/juancarlospaco.png","language":"Nim","funding_links":["https://liberapay.com/juancarlospaco","https://liberapay.com/juancarlospaco/donate","https://streamlabs.com/juancarlospaco"],"categories":[],"sub_categories":[],"readme":"# DNS Protec\n\n![](https://img.shields.io/github/languages/top/juancarlospaco/nim-dnsprotec?style=for-the-badge)\n![](https://img.shields.io/github/languages/count/juancarlospaco/nim-dnsprotec?logoColor=green\u0026style=for-the-badge)\n![](https://img.shields.io/github/stars/juancarlospaco/nim-dnsprotec?style=for-the-badge \"Star nim-dnsprotec on GitHub!\")\n![](https://img.shields.io/maintenance/yes/2019?style=for-the-badge \"2019\")\n![](https://img.shields.io/github/languages/code-size/juancarlospaco/nim-dnsprotec?style=for-the-badge)\n![](https://img.shields.io/github/issues-raw/juancarlospaco/nim-dnsprotec?style=for-the-badge \"Bugs\")\n![](https://img.shields.io/github/issues-pr-raw/juancarlospaco/nim-dnsprotec?style=for-the-badge \"PRs\")\n![](https://img.shields.io/github/commit-activity/y/juancarlospaco/nim-dnsprotec?style=for-the-badge)\n![](https://img.shields.io/github/last-commit/juancarlospaco/nim-dnsprotec?style=for-the-badge \"Commits\")\n\n- DNS `/etc/hosts` file manager, Block 1 Million malicious domains on 1 command.\n- 1 File, 0 Dependency, no config, no setup, works Offline, for any Linux, 60 lines of code.\n- Does **NOT overwrite `/etc/hosts` by default**, Backup by default, can delete itself (for Docker), runs on Alpine.\n\n![](https://raw.githubusercontent.com/juancarlospaco/nim-dnsprotec/master/temp.png \"Does NOT run 'sudo mv', just prints the command for you\")\n\n\n# Use\n\n```\n$ dnsprotec\n```\n\n- If you reply `n` to everything it gives you your current `/etc/hosts` file.\n\n\n# Download\n\n- https://github.com/juancarlospaco/nim-dnsprotec/releases\n\n\n# Install\n\n- `nimble install dnsprotec`\n\n\n# Compile\n\n```\n$ nim c dnsprotec.nim\n```\n\n- Force overwriting of `/etc/hosts` with `-d:overwrite`.\n- Your current `/etc/hosts` will be statically read as a base template for new host files.\n- Compilation requires Internet, but after that it works 100% Offline.\n- You can add your custom local or remote DNS Blacklists on `hosts` file format, separated by comma:\n\n```\n-d:customUrls=\"http://foo.io/hosts,http://bar.io/blacklist,http://127.0.0.1/blockedDNS\"\n```\n\n\n# Spotify\n\nAs a side-effect, Spotify desktop app behaves like Premium, it will not show Ads, but plays music.\n\nIf it stops playing music disable the DNS protec, use it for a while, and you can enable it back later,\nit seems from time to time it checks with Spotify servers, but yeah Spotify Premium for free ;)\n\n\n# Why\n\nI know there are other scripts, but those need a virtual machine or interpreter,\nand need to be online to work properly, I needed one that can work offline and standalone.\n\n\n# Stars\n\n![Star nim-dnsprotec on GitHub](https://starchart.cc/juancarlospaco/nim-dnsprotec.svg \"Star nim-dnsprotec on GitHub!\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-dnsprotec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuancarlospaco%2Fnim-dnsprotec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuancarlospaco%2Fnim-dnsprotec/lists"}