Skip to content

Instantly share code, notes, and snippets.

@testlnord
Created March 11, 2016 11:02
Show Gist options
  • Select an option

  • Save testlnord/3b7385bd927f1a3914b4 to your computer and use it in GitHub Desktop.

Select an option

Save testlnord/3b7385bd927f1a3914b4 to your computer and use it in GitHub Desktop.

Revisions

  1. testlnord created this gist Mar 11, 2016.
    7 changes: 7 additions & 0 deletions site blocker
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #! /bin/sh

    echo "" >> /etc/hosts
    echo "127.0.0.1 "$1 >> /etc/hosts
    echo "127.0.0.1 www."$1 >> /etc/hosts
    echo "::0 "$1 >> /etc/hosts
    echo "::0 www."$1 >> /etc/hosts