屏蔽优酷广告原理自然是让优酷的页面访问不到广告页面.
用httpwatch(初级用法很简单)监听打开一个优酷视频的所有链接,抓到的数据如下.
创新新互联,凭借十余年的成都网站设计、
做网站经验,本着真心·诚心服务的企业理念服务于成都中小企业设计网站有成百上千家案例。做网站建设,选
创新互联。
稍加分析,其实出点失误也没关系.发现下列地址应该和视频本身没关系.打开hosts文件让他们跳转到别处去.
WIN7 的路径是 C:WindowsSystem32driversetc加入下列
#优酷
0.0.0.0 stat.youku.com
0.0.0.0 vhtml.atm.youku.com
0.0.0.0 valf.atm.youku.com
0.0.0.0 html.atm.youku.com
0.0.0.0 ad.atm.youku.com
0.0.0.0 vid.atm.youku.com
#乐视网(同样原理分析出来的)
0.0.0.0 pro.letv.com
0.0.0.0 app.letv.com
0.0.0.0 stat.letv.com
0.0.0.0 dc.letv.com
#土豆
0.0.0.0 stats.tudou.com
0.0.0.0 td.atm.youku.com
0.0.0.0 h.irs01.com
0.0.0.0 player.pb.ops.tudou.com
0.0.0.0 istat.tudou.com
0.0.0.0 v.l.youku.com
0.0.0.0 h.irs01.com
0.0.0.0 stat.tudou.com
之后你会发现,不仅是视频前的广告没了,而且连边上的静态广告也没了,我想是–>ad.atm.youku.com的原因~
不需要等广告时间了,假设一个星期平均看了6个视频,每个广告平均等待时间按30秒算, 就是3分钟.
假设从今以后我还要看40年的视频0 0!,每年52个星期40*52*3/60/24 = 4.333天~.那么就是总共节约了4天多的生命.
+ 0.000 ! 0.432 525 17751 GET 200 html http://v.youku.com/v_show/id_XNDMzODIwOTMy.html?f=17937456
+ 0.329 ! 0.138 668 294 GET 304 css http://static.youku.com/v1.0.0786/index/css/youku.css
+ 0.356 ! 0.197 663 294 GET 304 css http://static.youku.com/v1.0.0786/v/css/play.css
+ 0.357 ! 0.095 664 301 GET 304 javascript http://static.youku.com/v1.0.0786/js/prototype.js
+ 0.359 ! 0.121 667 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/common.js
+ 0.360 ! 0.138 669 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/playlist.js
+ 0.361 ! 0.166 662 301 GET 304 javascript http://static.youku.com/v1.0.0786/v/js/v4/v4.js
+ 0.362 ! 0.146 666 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/popup.js
+ 0.363 ! 0.177 668 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/qwindow.js
+ 0.365 ! 0.202 673 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/searchprompt.js
+ 0.366 ! 0.214 671 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/miniheader.js
+ 0.595 ! 0.051 652 272 GET 304 gif /upload/otherpic25/qls.gif
+ 0.596 ! 0.064 652 272 GET 304 gif /upload/otherpic25/qlh.gif
+ 0.596 ! 0.076 653 271 GET 304 gif /upload/otherpic25/qlsed.gif
+ 0.633 ! 0.055 674 272 GET 304 png /upload/otherpic25/youkulogo-s.png
+ 0.638 ! 0.065 662 272 GET 304 gif /upload/otherpic25/bg_header.gif
+ 0.641 ! 0.072 660 272 GET 304 gif /upload/otherpic25/message.gif
+ 0.650 ! 0.076 668 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/hzClick.js
+ 0.664 ! 0.031 0 0 GET (Cache) flash http://static.youku.com/v1.0.0253/v/swf/player.swf
+ 1.014 ! 0.001 0 0 GET (Cache) flash http://static.youku.com/v1.0.0786/v/swf/ikuadapter.swf
+ 1.035 ! 0.053 659 272 GET 304 png /upload/otherpic25/master.png
+ 1.040 ! 0.059 673 273 GET 304 jpeg /upload/otherpic25/999.jpg
+ 1.048 ! 0.568 540 3385 GET 200 jpeg http://g3.ykimg.com/0130391F454FE2E87A1C7900355E30FD7FF788-83EC-139F-E74D-9E761F0A764A?1340270714
+ 1.053 ! 0.321 479 3661 GET 200 jpeg http://g4.ykimg.com/0100641F465015E78FD03207596702215089E5-9E48-1B47-946A-6634209EBEDD
+ 1.053 ! 0.560 556 3938 GET 200 jpeg http://g3.ykimg.com/0100641F465014C9BB55A00727D0CDDE4EBF12-74E9-BC3B-7E62-9FA3135CC579
+ 1.054 0.524 479 5759 GET 200 jpeg http://g1.ykimg.com/0100641F464C23E4CBF93F00355E30D3316CE6-EFB2-2EDE-A533-8EC0B37A536A
+ 1.054 ! 0.515 479 4127 GET 200 jpeg http://g4.ykimg.com/0100641F464FD6D1334D7206AFF744FA7AEC28-27E4-33B9-E64D-A5A4E41C7A86
+ 1.054 ! 0.545 558 5336 GET 200 jpeg http://g1.ykimg.com/0100641F464FDD3683562306AFF74445BE5E34-D1A9-0934-5850-EEC278A387CE
+ 1.054 ! 0.556 479 6000 GET 200 jpeg http://g3.ykimg.com/01270F1F464FD7DA121A100123193CC5025444-D7B0-1788-0124-41E9673656A3
+ 1.055 ! 0.532 479 5598 GET 200 jpeg http://g3.ykimg.com/01270F1F464FD7D9DC06160123193CD58A9F33-6190-04B8-234D-9A9DFECACCDF
+ 1.055 ! 0.550 479 5814 GET 200 jpeg http://g1.ykimg.com/01270F1F464FD7DA5DCA440123193C77983E1A-21DC-3684-4B44-367247CD3449
+ 1.055 ! 0.526 529 4506 GET 200 jpeg http://g4.ykimg.com/0100641F464EC33C04656100355E302F50186B-452B-519F-8CB3-974BFC30A043
+ 1.065 ! 0.129 668 272 GET 304 png /upload/otherpic25/ico_Qzone.png
+ 1.066 ! 0.063 667 272 GET 304 gif /upload/otherpic25/ico_sina.gif
+ 1.066 ! 0.075 669 272 GET 304 gif /upload/otherpic25/ico_renren.gif
+ 1.066 ! 0.100 667 272 GET 304 png /upload/otherpic25/ico_qq_t.png
+ 1.067 ! 0.088 670 272 GET 304 png /upload/otherpic25/ico_pengyou.png
+ 1.067 ! 0.153 674 272 GET 304 png /upload/otherpic25/ico_baidu_16x16.png
+ 1.067 ! 0.113 672 272 GET 304 png /upload/otherpic25/ico_dou_16x16.png
+ 1.068 ! 0.138 667 272 GET 304 gif /upload/otherpic25/ico_sohu.gif
+ 1.068 ! 0.164 666 272 GET 304 png /upload/otherpic25/ico_msn.png
+ 1.068 ! 0.177 669 272 GET 304 gif /upload/otherpic25/ico_kaixin.gif
+ 1.069 ! 0.206 666 272 GET 304 gif /upload/otherpic25/ico_mop.gif
+ 1.069 ! 0.216 669 272 GET 304 gif /upload/otherpic25/ico_163_16.gif
+ 1.072 ! 0.229 654 272 GET 304 png /upload/otherpic25/bg_fn.png
+ 1.073 ! 0.243 657 272 GET 304 png /upload/otherpic25/form.png
+ 1.075 ! 0.254 663 272 GET 304 gif /upload/otherpic25/ico_loading_16.gif
+ 1.092 ! 0.250 669 272 GET 304 gif /upload/otherpic25/loading_h8.gif
+ 1.096 ! 0.259 655 272 GET 304 png /upload/otherpic25/splite.png
+ 1.102 ! 0.417 735 498 GET 200 javascript http://v.youku.com/QVideo/~ajax/getVideoPlayInfo?__rt=1&__ro=&id=108455233&type=vv
+ 1.102 ! 0.392 724 546 GET 200 javascript http://comments.youku.com/comments/~ajax/getStatus.html?__ap=%7B%22videoid%22%3A%22108455233%22%2C%22userid%22%3A%22123299586%22%2C%22oldSid%22%3A-1%7D&__ai=&__callback=commentInfoCallback
+ 1.103 0.000 0 0 GET (Cache) html http://v.youku.com/v_vphotvideo/cid_98?__rt=1&__ro=vphotvideo
+ 1.105 0.948 753 1369 GET 200 html http://v.youku.com/v_vpcommendvideos/cid_98_rid_16?__rt=1&__ro=vpcommendvideos&douban_num=&imdb_num=
+ 1.112 ! 3.167 558 5775 GET 200 jpeg http://g4.ykimg.com/0100641F464FF67348F68A004D12A8B1DE7660-056E-7C9E-1723-709478F02DB5
+ 1.113 ! 3.138 558 6429 GET 200 jpeg http://g1.ykimg.com/01270F1F464FF1D91809500123193C808739AC-0B7D-63B2-C93B-1334CEC1A7EF
+ 1.113 ! 3.170 557 3784 GET 200 jpeg http://g3.ykimg.com/0100641F464FC488E3E28B06C658F2A27AB4DE-CCB1-8D2A-6F5C-DA31D70EAA8D
+ 1.114 ! 3.153 558 6545 GET 200 jpeg http://g1.ykimg.com/01270F1F464FC302932C240123193C368E7C0E-2E68-8DF7-F29C-A9B082F53B2B
+ 1.116 ! 0.252 670 301 GET 304 javascript http://static.youku.com/v1.0.0786/index/js/iresearch.js
+ 2.621 ! 0.064 868 255 GET 304 javascript http://comments.youku.com/comments/~ajax/vpcommentContent.html?__ap=%7B%22videoid%22%3A%22108455233%22%2C%22sid%22%3A%22397047416%22%2C%22last_modify%22%3A%221343708605%22%2C%22page%22%3A1%2C%22version%22%3A%22v1.17%22%2C%22commentSid%22%3A%22%22%7D&__ai=&__callback=displayComments
+ 2.745 ! 0.172 558 3878 GET 200 jpeg http://g2.ykimg.com/0100641F465008E9093E1505BB07341D3F4C07-EDD1-F11C-353C-0194ABC47BE4
+ 2.745 ! 0.058 558 2835 GET 200 jpeg http://g3.ykimg.com/0100641F465004D42A84CF01FB2AC9AF760519-065B-CC62-43CB-2201CB347019
+ 2.746 ! 0.137 479 4372 GET 200 jpeg http://g4.ykimg.com/0100641F464FABC34FC49B0694EF04F6E225FC-6C30-069F-A7C8-717AAE19FCAE
+ 2.774 ! 0.050 674 272 GET 304 gif /upload/otherpic25/Yo17.gif
+ 2.775 ! 0.064 673 272 GET 304 gif /upload/otherpic25/sns_icon.gif
+ 2.777 ! 0.076 675 272 GET 304 gif /upload/otherpic25/Qoo12.gif
+ 2.787 ! 0.091 657 272 GET 304 png /upload/otherpic25/ico_apps.png
+ 2.820 ! 0.233 497 1424 GET 200 javascript http://b.scorecardresearch.com/beacon.js
+ 3.261 0.215 1039 248 GET 204 http://b.scorecardresearch.com/b?c1=2&c2=7293931&c3=&c4=&c5=&c6=&c15=&ns__t=1343708639472&ns_c=gb2312&c8=%E4%BC%98%E9%85%B7%E6%99%A8%E9%97%B4%E4%B8%BB%E6%92%AD%E7%AC%AC04%E9%9B%86%20-%20%E6%99%A8%E9%97%B4%E4%B8%BB%E6%92%AD04%EF%BC%9A37%E5%B2%81%E6%AF%8D%E4%BA%B2%E4%B8%BA%E6%95%91%E7%88%B1%E5%AD%90%E5%8F%82%E8%B5%9B%20%E8%8F%B2%E5%B0%94%E6%99%AE%E6%96%AF%E6%B2%89%E8%BF%B7%E7%BD%91%E6%B8%B8%20-%20%E8%A7%86%E9%A2%91%20-%20%E4%BC%98%E9%85%B7%E8%A7%86%E9%A2%91%20-%20%E5%9C%A8%E7%BA%BF%E8%A7%82%E7%9C%8B&c7=http%3A%2F%2Fv.youku.com%2Fv_show%2Fid_XNDMzODIwOTMy.html%3Ff%3D17937456&c9=
+ 3.597 ! 0.102 476 202 GET 304 flash http://irs01.net/MTFlashStore.swf
+ 3.684 ! 0.000 0 0 GET (Cache) xml http://v.youku.com/crossdomain.xml
+ 3.685 ! 0.243 713 5921 GET 200 html http://v.youku.com/player/getPlayList/VideoIDS/XNDMzODIwOTMy/timezone/+08/version/5/source/video/Type/Folder/Fid/17937456/Pt/0/Ob/1?ran=5809&password=&n=3
+ 3.796 0.000 0 0 GET (Cache) flash http://irs01.net/MTFlashStore.swf
+ 4.234 ! 0.052 1546 1888 GET 404 html http://urchin.lstat.youku.com/index/js/urchin.js
+ 4.251 0.234 483 248 GET 204 http://b.scorecardresearch.com/b?c1=1&c2=7293931&c3=&c4=&c5=&c6=
+ 4.252 ! 0.161 708 346 GET 302 Redirect to http://114.80.180.71/youku/6773F3245903F814ECC64221F0/03000201004E94E067FF16003E880335401247-C92E-9BD8-8D0B-6CCD1F1FB9E4.flv http://f.youku.com/player/getFlvPath/fileid/03000201004E94E067FF16003E880335401247-C92E-9BD8-8D0B-6CCD1F1FB9E4?K=4fd0db54d06328ca261c7a15&yad=1&ts=15
+ 4.252 ! 0.314 535 1660 GET 404 html http://stat.youku.com/crossdomain.xml
+ 4.252 0.000 0 0 GET (Cache) xml http://h.irs01.com/crossdomain.xml
+ 4.253 ! 0.179 647 305 GET 200 javascript http://h.irs01.com/irt?_iwt_id=gxSptLtMxE8Cmx5MR1UazgA=&_iwt_UA=UA-youku-200001&jsonp=SetIDA3&_iwt_p1=A-3-0&_iwt_p2=XNDMzODIwOTMy&_iwt_p3=1472-0-0-0&r=1470
+ 4.319 ! 0.048 665 272 GET 304 png /upload/otherpic25/ico_follow_arrow.png
+ 4.324 ! 0.059 658 272 GET 304 png /upload/otherpic25/ico_close.png
+ 4.413 ! 1.535 540 559046 GET 200 video http://114.80.180.71/youku/6773F3245903F814ECC64221F0/03000201004E94E067FF16003E880335401247-C92E-9BD8-8D0B-6CCD1F1FB9E4.flv
+ 4.795 ! 0.107 563 314 GET 200 javascript http://irs01.com/irt?_iwt_id=gxSptLtMxE8Cmx5MR1UazgA=&_iwt_UA=UA-youku-000001&jsonp=MTH5AHFJ012Y7T8W&_iwt_p1=&_iwt_p2=&_iwt_p3=&
+ 5.020 ! 3.133 967 1758 GET 200 html http://vhtml.atm.youku.com/vhtml?p=863&ct=e&cs=2120|2121&td=0&v=108455233&u=123299586&k=20120730|%E6%99%A8%E9%97%B4%E4%B8%BB%E6%92%AD|04|&t=1343708641231
+ 5.121 ! 0.147 889 572 GET 200 gif /upload/otherpic25/x.gif?k=1002263&p=3xvJ30&rt=2&o=
+ 5.121 ! 0.084 921 1664 GET 404 html http://valf.atm.youku.com/show?v=108455233&p=1&ct=e&cs=2120&ca=74928&ie=81625&uid=123299586&pl=2&bl=1&s=268687&td=0&cookie=1335711629044r09&vl=15
+ 6.007 ! 0.119 708 347 GET 302 Redirect to http://202.102.77.142/youku/6771E7B6D124381BD7E3BE652E/0300020100501698A517F6003E88036574B4EB-55F1-AFF6-513B-AE1A862A19EB.flv http://f.youku.com/player/getFlvPath/fileid/0300020100501698A517F6003E88036574B4EB-55F1-AFF6-513B-AE1A862A19EB?K=549dd9901854d418261c7a15&yad=1&ts=15
+ 6.127 ! 1.709 541 552858 GET 200 video http://202.102.77.142/youku/6771E7B6D124381BD7E3BE652E/0300020100501698A517F6003E88036574B4EB-55F1-AFF6-513B-AE1A862A19EB.flv
+ 7.725 ! 0.006 954 1884 GET 404 html http://html.atm.youku.com/html?v=108455233&u=123299586&p=72,73,0,558,747,753,850,616,769&k=20120730|%E6%99%A8%E9%97%B4%E4%B8%BB%E6%92%AD|04|
+ 7.890 ! 0.119 708 346 GET 302 Redirect to http://202.102.78.13/youku/697637B086F32814AC03545CBC/03000201005004D8D0BEA1003E8803B72B4529-40F8-D448-C5A5-E8B07BE176DD.flv http://f.youku.com/player/getFlvPath/fileid/03000201005004D8D0BEA1003E8803B72B4529-40F8-D448-C5A5-E8B07BE176DD?K=246a7262c3ae2d7e2827de1e&yad=1&ts=15
+ 8.009 ! 1.829 540 557550 GET 200 video http://202.102.78.13/youku/697637B086F32814AC03545CBC/03000201005004D8D0BEA1003E8803B72B4529-40F8-D448-C5A5-E8B07BE176DD.flv
+ 8.158 ! 0.169 880 8398 GET 200 jpeg /upload/otherpic25/300_50.jpg
+ 8.158 ! 0.143 924 1001 GET 200 http://ad.atm.youku.com/tdcm/adcontrol?channelId=15&adSourceId=11000&itemLength=1343708641231&itemId=108455233
+ 8.158 ! 0.170 978 275 GET 200 html http://ad.atm.youku.com/tdap/adplay?s=20~_~85158~_~1~_~77978~_~108455233~_~510000~_~15~_~1343136757865M6I~_~1~_~1~_~11000~_~1343708641231~_~1111~_~1~_~0~_~222~_~333
+ 9.923 ! 0.119 759 345 GET 302 Redirect to http://122.225.31.79/youku/6764788D8649840EADF744871/030008040050174B5EA17A075967025A467F7A-4C1C-0145-0BEB-27D6C1BB174D.mp4 http://f.youku.com/player/getFlvPath/sid/134370863721912199896_00/st/mp4/fileid/030008040050174B5EA17A075967025A467F7A-4C1C-0145-0BEB-27D6C1BB174D?K=ebbe5a172a85e0af261c7a16&hd=1&myp=0&ts=418&ymovie=1
+ 10.042 ! * 539 17575200 GET 200 video http://122.225.31.79/youku/6764788D8649840EADF744871/030008040050174B5EA17A075967025A467F7A-4C1C-0145-0BEB-27D6C1BB174D.mp4
+ 20.260 ! 0.027 890 1663 GET 404 html http://vid.atm.youku.com/over?v=108455233&p=1&ct=e&cs=2120&ca=74928&ie=81625&uid=123299586&pl=2&bl=1&s=268687&td=0
+ 20.465 ! 0.085 921 1664 GET 404 html http://valf.atm.youku.com/show?v=108455233&p=1&ct=e&cs=2120&ca=78064&ie=85253&uid=123299586&pl=3&bl=1&s=268687&td=0&cookie=1335711629044r09&vl=15
+ 20.466 ! 0.138 514 389 GET 200 gif http://secure-cn.imrworldwide.com/cgi-bin/m?ci=cn-youku1206&cg=0&cc=1&si=2457/a
+ 24.001 ! 0.148 647 305 GET 200 javascript http://h.irs01.com/irt?_iwt_id=gxSptLtMxE8Cmx5MR1UazgA=&_iwt_UA=UA-youku-200002&jsonp=SetIDC0&_iwt_p1=C-0-1&_iwt_p2=XNDMzODIwOTMy&_iwt_p3=1472-6-3-4&r=3446
+ 32.632 ! 0.080 739 548 GET 200 javascript http://comments.youku.com/comments/~ajax/getStatus.html?__ap=%7B%22videoid%22%3A%22108455233%22%2C%22userid%22%3A%22123299586%22%2C%22oldSid%22%3A%22397047416%22%7D&__ai=&__callback=checkCommentsCallback
+ 35.551 ! 0.142 890 1663 GET 404 html http://vid.atm.youku.com/over?v=108455233&p=1&ct=e&cs=2120&ca=78064&ie=85253&uid=123299586&pl=3&bl=1&s=268687&td=0
+ 35.754 ! 0.122 921 1664 GET 404 html http://valf.atm.youku.com/show?v=108455233&p=1&ct=e&cs=2120&ca=76283&ie=83222&uid=123299586&pl=4&bl=1&s=268687&td=0&cookie=1335711629044r09&vl=15
+ 35.754 ! 0.162 514 389 GET 200 gif http://secure-cn.imrworldwide.com/cgi-bin/m?ci=cn-youku2012&cg=0&cc=1&si=2409/a
+ 40.070 ! 0.113 647 305 GET 200 javascript http://h.irs01.com/irt?_iwt_id=gxSptLtMxE8Cmx5MR1UazgA=&_iwt_UA=UA-youku-200001&jsonp=SetIDC1&_iwt_p1=C-1-1&_iwt_p2=XNDMzODIwOTMy&_iwt_p3=1472-4-2-1&r=2076
网站名称:屏蔽土豆优酷广告-创新互联
转载源于:
http://cdxtjz.cn/article/idcos.html