第一步:屏蔽Hosts
在操作系统的Hosts文件(C:\Windows\System32\drivers\etc\hosts)中加入如下内容:
#Youku
127.0.0.1 atm.youku.com
127.0.0.1 fvid.atm.youku.com
127.0.0.1 html.atm.youku.com
127.0.0.1 valb.atm.youku.com
127.0.0.1 valc.atm.youku.com
127.0.0.1 valf.atm.youku.com
127.0.0.1 valo.atm.youku.com
127.0.0.1 valp.atm.youku.com
127.0.0.1 vid.atm.youku.com
127.0.0.1 walp.atm.youku.com
127.0.0.1 lstat.youku.com
127.0.0.1 speed.lstat.youku.com
127.0.0.1 static.lstat.youku.com
127.0.0.1 urchin.lstat.youku.com
127.0.0.1 stat.youku.com
127.0.0.1 atm.youku.com
127.0.0.1 fvid.atm.youku.com
127.0.0.1 html.atm.youku.com
127.0.0.1 valb.atm.youku.com
127.0.0.1 valc.atm.youku.com
127.0.0.1 valf.atm.youku.com
127.0.0.1 valo.atm.youku.com
127.0.0.1 valp.atm.youku.com
127.0.0.1 vid.atm.youku.com
127.0.0.1 walp.atm.youku.com
127.0.0.1 lstat.youku.com
127.0.0.1 speed.lstat.youku.com
127.0.0.1 static.lstat.youku.com
127.0.0.1 urchin.lstat.youku.com
127.0.0.1 stat.youku.com
第二步:屏蔽Flash SharedObjects
首先找到Flash的SharedObjects存储路径,删除“static.youku.com”这个目录:
Windows XP:
C:\Documents and Settings\Administrator\Application Data\Macromedia\Flash Player\#SharedObjects\[随机数]\static.youku.com
Windows 7:
C:\Users\Administrator\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\[随机数]\static.youku.com
然后使用记事本新建一个文件,将文件名修改为“static.youku.com”(即扩展名为“.com”),这样Flash就无法正常读写SharedObjects,从而无法判断是否屏蔽广告了。
转载于:https://blog.51cto.com/dadekey/933819