於 Ubuntu Linux 封鎖網站

於 Ubuntu Linux 封鎖網站, 讓 DNS 查不到, 就是一種很簡單的作法.

下述取自: How to block websites in Ubuntu Linux

  1. vim /etc/hosts

    0.0.0.0 www.mysite.com
    0.0.0.0 www.mysite2.com

  2. 存檔後, 即連不到 www.mysite.com, www.mysite2.com.