标题: 在iMac/MacBook上, 禁止某个指定的网页网址的方法
cjc


软件作者



UID 1
精华 18
积分 2773
帖子 1467
威望 2773
金钱 72
阅读权限 200
注册 2002-5-7
发表于 2012-6-29 09:56  资料  个人空间  短消息  加为好友 
在iMac/MacBook上, 禁止某个指定的网页网址的方法

在iMac/MacBook上, 如何禁止某个指定的网页网址


可以用以下命令修改配置文件
sudo nano /etc/hosts


1. 在 Finder 里找到应用程序 Terminal
2. 在 Terminal 里输入 sudo nano /etc/hosts
3. 输入管理员密码
4. 修改成 127.0.0.1 www.xxx.xxx
5. Ctrl+X 退出,按 Y 保存



It's just like in Windows, except it's a little trickier to access.
Use Finder to search for the application Terminal.
In there type: sudo pico /etc/hosts
Enter your root password.
Use the arrow keys to move down to the bottom line and then type:

127.0.0.1 www.thesiteyouwanttoblock.com

There is a space between 127.0.0.1 and www.

User Ctrl+X to exit and Y to Save.

Then type lookupd -flushcache

Quit the Terminal and restart Safari.

参考网址:
http://osxdaily.com/2010/04/21/h ... -firefox-or-chrome/

http://osxdaily.com/2007/03/19/b ... modifying-etchosts/

方法2
http://www.ehow.com/how_4928304_block-websites-safari.html

顶部
 



当前时区 GMT+8, 现在时间是 2024-3-29 04:43

粤ICP备2021113670号
访问量: - 清除 Cookies - 联系我们 - CJC学习与技术分享