Giter Club home page Giter Club logo

nim-dnsprotec's Introduction

DNS Protec

  • DNS /etc/hosts file manager, Block 1 Million malicious domains on 1 command.
  • 1 File, 0 Dependency, no config, no setup, works Offline, for any Linux, 60 lines of code.
  • Does NOT overwrite /etc/hosts by default, Backup by default, can delete itself (for Docker), runs on Alpine.

Use

$ dnsprotec
  • If you reply n to everything it gives you your current /etc/hosts file.

Download

Install

  • nimble install dnsprotec

Compile

$ nim c dnsprotec.nim
  • Force overwriting of /etc/hosts with -d:overwrite.
  • Your current /etc/hosts will be statically read as a base template for new host files.
  • Compilation requires Internet, but after that it works 100% Offline.
  • You can add your custom local or remote DNS Blacklists on hosts file format, separated by comma:
-d:customUrls="http://foo.io/hosts,http://bar.io/blacklist,http://127.0.0.1/blockedDNS"

Spotify

As a side-effect, Spotify desktop app behaves like Premium, it will not show Ads, but plays music.

If it stops playing music disable the DNS protec, use it for a while, and you can enable it back later, it seems from time to time it checks with Spotify servers, but yeah Spotify Premium for free ;)

Why

I know there are other scripts, but those need a virtual machine or interpreter, and need to be online to work properly, I needed one that can work offline and standalone.

Stars

Star nim-dnsprotec on GitHub

nim-dnsprotec's People

Contributors

juancarlospaco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

etem foxoman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.