Skip to content

Instantly share code, notes, and snippets.

@shadyvb
Created November 5, 2014 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadyvb/caf765a0e9bd6a037b16 to your computer and use it in GitHub Desktop.
Save shadyvb/caf765a0e9bd6a037b16 to your computer and use it in GitHub Desktop.
Batch to block certain websites on Windows
echo "127.0.0.1 facebook.com" >> %Windir%\System32\drivers\etc\hosts
echo "127.0.0.1 myegy.to" >> %Windir%\System32\drivers\etc\hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment