News for hackers. Stuff that matters.
Re:The Great Cannon has been deployed again by DyslexicAtheist on Friday December 06, 2019 @12:50PM (#21724223)
just for good measure:

  sudo echo -e "\n\n# Null route the Great Cannon:\n0.0.0.0 baidu.com\n0.0.0.0 qihucdn.com\n" | tee /etc/hosts
... but I know I'm only fooling myself.
Re:The Great Cannon has been deployed again by nothrabannosir on Friday December 06, 2019 @01:11PM (#21724449)
(I strongly recommend tee -a :) as well as putting the sudo before the tee).
Re:The Great Cannon has been deployed again by iotku on Friday December 06, 2019 @05:24PM (#21726615)
Notable reason (for those unfamiliar) is that tee will overwrite the file unless given the -a argument which will append the input to the end of the file.
Re:The Great Cannon has been deployed again by DyslexicAtheist on Friday December 06, 2019 @01:14PM (#21724475)
:)

thanks (I admit didn't test it because I use `python3 ./updateHostsFile.py` to take care of /etc/hosts)