機主檔案允許您在正在使用的計算機上阻止訪問網站. 它適用於計算機上的所有賬戶. 編輯主機檔案會阻止一個網站,但不會提供任何額外的功能,如跟蹤或時間限制. 精通技術的使用者可能能夠更改主機檔案並繞過封鎖. 導航到C:\Windows\System32\drivers\etc,然後雙擊它. 使用筆記本開啟檔案時被提示選擇一個程式. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/d\/d5\/Block-a-Website-in-All-Web-Browsers-Step-2-Version-2.jpg\/v4-460px-Block-a-Website-in-All-Web-Browsers-Step-2-Version-2.jpg","Urbigl":"\/images/\/thumb/d\/d5\/Block-a-Website-in-All-Web-Browsers-Step-2-Version-2.jpg"<p>"small6","Heid4","small6",<p>"small7",<p>"Heid4",<p>"small7",<p>"small8",<p>"small8",<p>"small8",<p>"small8",<p>"small8",<p>"small8",<p>" 在您的開始點和現有文字的末尾之間放置一條空白線. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/b\/b0\/Block-a-Website-in-All-Web-Browsers-Step-4.jpg\/v4-460px-Block-a-Website-in-All-Web-Browsers-Step-4.jpg","Urbigl":"\/images\/thumb\/b\/b0\/Block-a-Website-in-All-Web-Browsers-Step-4.jpg\/aid792339-v4-728px-Block-a-Website-in-All-Web-Browsers-Step-4.jpg","smallWidthumb\/b6\"Height-40,"smallHeight-45,""smallWidthumb\/b0\","Height-38\n"Height-38\n"Height-Block-Web-Web 替換<website>以您想要封鎖的網站 (facebook.com,youtube.com等). {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/c\/cb\/Block-a-Website-in-All-Web-Browsers-Step-5Bullet1-Version-2.jpg\/v4-460px-Block-a-Website-in-All-Web-Browsers-Step-5Bullet1-Version-2.jpg","bigUrl":"\/images\/thumb\/c\/cb\/Block-a-Website-in-All-Web-Browsers-Step-5Bullet1-Version-2.jpg/www.facebook.com,youtube.com等等等. {"smallUrl":"https:\/www.wikihow.com\/images\/thumb\/c\/cb\/cb\/cb\/block-a-Website-in-In-All-Web 基本上,你應該有兩個輸入每一個網站,你想阻止: 127.0.0.1 facebook.com 和 127.0.0.1 www.facebook.com. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/2\/22\/Block-Websites-Step-19Bullet4.jpg""/v4-460px-Block-Websites-Step-19Bullet4.jpg",""Url":":"\/images\/thumb\/2\/22\/Block-Websites-Step-19Bullet4.jpg\/aid\/792339-v428-7px-Block-Websites-Step-19Bullet4.jpg","smallUrl:":"https:\/smallUrl:"https://www.website.com/wp-content/wp-content/wp-content/wp-content/wp-content/wp-content/wp-content/wp-content/wp-content/wp-content/wp-content" 不要更改檔案的名稱,型別或位置. 簡單地儲存您所做的更改. 您可能需要重新啟動瀏覽器,以使更改生效. 如果您無法編輯主機檔案,您也可以通過右鍵點選它,然後從上面提到的合適位置開啟主機檔案,以管理員身份執行筆記本. 機主檔案允許您在正在使用的計算機上阻止訪問網站. 它適用於計算機上的所有賬戶. 啟動終端,可以在實用程式檔案<unk>中找到. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/f\/fc\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-2.jpg\/v4-460px-Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-2.jpg","bigUrl":"\/images\/thumb\/f\/c\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-2.jpg"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p>"<p> 您可以通過輸入以下命令並按Enter: sudo /bin/cp /etc/hosts /etc/hosts-original,建立主機檔案的備份. 你可能需要輸入你的管理員密碼. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/f\/f5\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-3.jpg\/v4-460px-Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-3.jpg","bigUrl":"\/images\/thumb\/f\/f5\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-3.jpg"<p>"smallWidth6",<smallWidth4",<smallWidth4",<smallWidth4",<smallWidth4",<smallWidth4",<smallWidth4",<smallWidth4",<smallWidth4",<smallWidth4",<smallWidth4", 要編輯主機檔案,您需要用以下命令在nano中開啟它: sudo nano /etc/hosts/. 這將開啟奈米視窗,您將看到主機檔案文字. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/3\/33\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-6.jpg\/v4-460px-Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-6.jpg","bigUrl":"\/images\/thumb\/3\/33\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-6.jpg"<p>"smallWidth6",<p>"smallWidth4",<p>"smallWidth4",<p>"smallWidth4",<p>"smallWidth4",<p>"smallWidth4",<p>"smallWidth4",<p>"smallWidth4", 輸入127.0.0.1 <網站> 並按Enter. 替換<website>以您想要封鎖的網站 (facebook.com,youtube.com等). {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/d\/d9\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-7.jpg\/v4-460px-Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-7.jpg","Urbigl":"\/images\/thumb\/d\/d9\/Block-and-Unblock-Sites-%28On-a-Mac%29-Step-7.jpg"等. <p>"<p>"Creative Commons"<p>"Creative Commons"<p>"Creative Commons"<p>"Creative Commons"<p>"Creative Commons"<p>"Creative Commons"<p>"Creative Commons"<p>"Creative Commons"<p><p>Creative 在本質上,你應該有兩個條目每一個網站,你想阻止: 127.0.0.1 facebook.com 和 127.0.0.1 www.facebook.com. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/3\/39\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-9.jpg\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ 使用DNS沖洗命令 sudo dscacheutil <unk>flush快取重置您的DNS並載入新的設定. 您的瀏覽器現在應該阻止您在主機檔案中列出的網站. {"smallUrl":"https:\/\/www.wikihow.com\/images\/thumb\/d\/d5\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-12.jpg\/v4-460px-Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-12.jpg","bigUrl":"\/images\/thumb\/d\/d5\/Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-12.jpg""/v4-460px-Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-12.jpg""/v4-460px-Block-and-Unblock-Internet-Sites-%28On-a-Mac%29-Step-12.jpg""/v4-460px-Block-and-Unblock 如果你的網路上有很多計算機, 這可能是不可行的.  摘要:
在Windows中編輯主機檔案. 在Mac上編輯主機檔案. 在您想要保護的每臺計算機上重複這些步驟.