用hosts或路由器屏蔽抖音(直接屏蔽与只屏蔽视频)

最近家里来了几个小朋友,人手一台手机刷抖音还外放,很无奈,所以自己抓包写了hosts

 

有两种效果的hosts

第一种

直接不允许联网,抖音首先会检测有没有网络,就是访问自己服务器获取数据

将以下几个网址屏蔽后,抖音就会直接提示加载失败

127.0.0.1 log.snssdk.com
127.0.0.1 xlog.snssdk.com
127.0.0.1 i.snssdk.com
127.0.0.1 aweme.snssdk.com
127.0.0.1 lf.snssdk.com
127.0.0.1 is.snssdk.com
127.0.0.1 api.amemv.com
127.0.0.1 is.snssdk.com
127.0.0.1 mon.snssdk.com
127.0.0.1 effect.snssdk.com
127.0.0.1 hotsoon.snssdk.com
127.0.0.1 dm.toutiao.com
127.0.0.1 iu.snssdk.com

效果图

用hosts或路由器屏蔽抖音(直接屏蔽与只屏蔽视频)_第1张图片

 

第二种

抖音检测能访问到自家服务器之后首先获取封面,然后加载视频

获取封面的网址是p1~9.pstatp.com pb1~9.pstatp.com,这个网址就不屏蔽

只屏蔽以下加载视频的网址

127.0.0.1 v1-dy.ixigua.com
127.0.0.1 v2-dy.ixigua.com
127.0.0.1 v3-dy.ixigua.com
127.0.0.1 v4-dy.ixigua.com
127.0.0.1 v5-dy.ixigua.com
127.0.0.1 v6-dy.ixigua.com
127.0.0.1 v7-dy.ixigua.com
127.0.0.1 v8-dy.ixigua.com
127.0.0.1 v9-dy.ixigua.com
127.0.0.1 v1.pstatp.com
127.0.0.1 v2.pstatp.com
127.0.0.1 v3.pstatp.com
127.0.0.1 v4.pstatp.com
127.0.0.1 v5.pstatp.com
127.0.0.1 v6.pstatp.com
127.0.0.1 v7.pstatp.com
127.0.0.1 v8.pstatp.com
127.0.0.1 v9.pstatp.com
127.0.0.1 v1-dy-x.ixigua.com
127.0.0.1 v2-dy-x.ixigua.com
127.0.0.1 v3-dy-x.ixigua.com
127.0.0.1 v4-dy-x.ixigua.com
127.0.0.1 v5-dy-x.ixigua.com
127.0.0.1 v6-dy-x.ixigua.com
127.0.0.1 v7-dy-x.ixigua.com
127.0.0.1 v8-dy-x.ixigua.com
127.0.0.1 v9-dy-x.ixigua.com
127.0.0.1 v1-dy-y.ixigua.com
127.0.0.1 v2-dy-y.ixigua.com
127.0.0.1 v3-dy-y.ixigua.com
127.0.0.1 v4-dy-y.ixigua.com
127.0.0.1 v5-dy-y.ixigua.com
127.0.0.1 v6-dy-y.ixigua.com
127.0.0.1 v7-dy-y.ixigua.com
127.0.0.1 v8-dy-y.ixigua.com
127.0.0.1 v9-dy-y.ixigua.com
127.0.0.1 v1-dy.ixiguavideo.com
127.0.0.1 v2-dy.ixiguavideo.com
127.0.0.1 v3-dy.ixiguavideo.com
127.0.0.1 v4-dy.ixiguavideo.com
127.0.0.1 v5-dy.ixiguavideo.com
127.0.0.1 v6-dy.ixiguavideo.com
127.0.0.1 v7-dy.ixiguavideo.com
127.0.0.1 v8-dy.ixiguavideo.com
127.0.0.1 v9-dy.ixiguavideo.com
127.0.0.1 v1-dy-z.ixigua.com
127.0.0.1 v2-dy-z.ixigua.com
127.0.0.1 v3-dy-z.ixigua.com
127.0.0.1 v4-dy-z.ixigua.com
127.0.0.1 v5-dy-z.ixigua.com
127.0.0.1 v6-dy-z.ixigua.com
127.0.0.1 v7-dy-z.ixigua.com
127.0.0.1 v8-dy-z.ixigua.com
127.0.0.1 v9-dy-z.ixigua.com

效果图

用hosts或路由器屏蔽抖音(直接屏蔽与只屏蔽视频)_第2张图片

这个的好处就是可以加载封面和其他的,不是直接提示加载失败,不然太明显别人猜得到

不过这个可能会加载出极少数视频,大概1%的概率

你可能感兴趣的:(other)