Help for this page

Select Code to Download


  1. or download this
     
    #!/bin/sh
    curl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts 
    +|grep '^0\.0\.0\.0' | awk '{print "local-zone: \""$2"\" redirect\nloc
    +al-data: \""$2" A 0.0.0.0\""}' > ads.conf
    
  2. or download this
    local-zone: "apps.id.net" redirect
    local-data: "apps.id.net A 0.0.0.0"
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
            }
    }
    close $file;
    
  4. or download this
    #!/usr/bin/perl
    use strict;
    ...
            if ($_ =~ /^\Q0.0.0.0\E (.*)$/){
                    print $file "local-zone: \"" . $1 . "\" redirect\nloca
    +l-data: \"" . $1 . " A 0.0.0.0\"\n";  
            }
    
  5. or download this
    #!/usr/bin/perl
    use strict;
    ...
            print $file "local-zone: \"" . $3 . "\" redirect\nlocal-data: 
    +\"" . $3 . " A 0.0.0.0\"\n";
    }
    close $file;