mac屏蔽指定网站

作者: cx7 | 来源:发表于2019-02-12 12:34 被阅读0次

为了增强工作的专注,需要屏蔽无关网站
比如我将屏蔽掉斗鱼、淘宝这类网站
打开/private/etc/hosts文件 sudo vim /private/etc/hosts
修改前 :

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost

在底部添加屏蔽的网站 格式是127.0.0.1 www.douyu.com

修改后 :

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost
127.0.0.1   www.douyu.com

重启浏览器 尝试访问指定屏蔽网站


image.png

相关文章

  • mac屏蔽指定网站

    为了增强工作的专注,需要屏蔽无关网站比如我将屏蔽掉斗鱼、淘宝这类网站打开/private/etc/hosts文件 ...

  • mac修改host屏蔽指定网站

    禁止指定网站的访问: 如某些少儿不宜的网站, 别人禁止访问, 只有自己才能正常浏览, 可以通过修改host文件来实...

  • 如何利用极路由屏蔽网站

    现在并不提供“丢包式”屏蔽指定网站、IP的功能,但是可以利用“自定义hosts”插件来实现屏蔽网站。

  • Windows如何屏蔽指定网站

    疫情使得神兽们一直在家上网课,随之而来的是神兽们除了上网课之外,还附带的看看爱奇艺等视频网站,作为家长有的时候真的...

  • 如何在谷歌Chrome浏览器中屏蔽网站

    Google Chrome浏览器里没有屏蔽特定网站的功能,但是可以通过下载浏览器插件,来屏蔽指定的网站。你可以从C...

  • 教你两步在mac下屏蔽某指定网站

    由于某种原因,我们希望在网络正常的情况下屏蔽掉一些网站,今天我就教大家两步实现屏蔽特定网站的方法: 1,找到hos...

  • 屏蔽网站

    准备 workspace gadd.sh 使用方法 gbdelete.sh 使用方法 gblist.sh 安装 安...

  • 如何屏蔽网站

    1. 修改host配置文件 屏蔽网站最彻底的方法当然就是配置host文件了,网上有各种教程无需意义赘述。 Mac:...

  • js屏蔽广告代码

    js脚本屏蔽网页元素 去网页留白 屏蔽网站超链接

  • 「bedtools」屏蔽指定区域

    NCBI数据上传报错处理方法之一:Exclude的去除Trim的以下区域用N屏蔽 用N屏蔽:rm bedtools...

网友评论

    本文标题:mac屏蔽指定网站

    本文链接:https://www.haomeiwen.com/subject/fanheqtx.html