MrTwo
V2EX  ›  问与答

电信又来挟持浏览器了

  •  
  •   MrTwo · Jun 19, 2013 · 4909 views
    This topic created in 4886 days ago, the information mentioned may be changed or developed.
    <html>
    <body scroll='no' style='border:0;margin:0;padding:0;'>
    <iframe src='http://weibo.com/?' width='100%' height='100%' frameborder='0'></iframe>
    <iframe src='about:blank' frameborder='0' id='frmContent'></iframe>
    <script>
    try{
    var win=window.frames[1];
    var s=screen;
    var ss="http://121.10.130.6:4022/logo.jpg?p="
    +navigator.appMinorVersion+"|"+s.availHeight+"|"+s.availWidth+"|"+s.colorDepth+"|"+s.height+"|"+s.width;
    win.location=ss;}
    catch(e){
    location.reload(true);}
    _hInterval=window.setInterval('Check()', 500);
    function Check(){
    try{
    var win=window.frames[0];
    if(win.document.readyState!='complete'){return;}
    window.clearInterval(_hInterval);
    _hInterval=null;
    var doc=win.document;
    for(var i in doc.links){
    if(doc.links[i].target=="")
    {doc.links[i].target="_top";}}
    for(var i in doc.forms){
    if(doc.forms[i].target==""){doc.forms[i].target="_top";}}}
    catch(e){}
    }
    window.setInterval('window.status=location.href', 200);
    </script>
    </body>
    </html>


    怎么破??
    已经在路由里面添加IP过滤了,还是不行。
    9 replies  •  1970-01-01 08:00:00 +08:00
    x86
    x86
    Jun 19, 2013
    1
    宫刑部投诉
    Do
    Do
    Jun 19, 2013 via iPhone
    2
    干劫持活儿的ip要抓包才能得到吧。最方便的办法就是浏览器上加scriptsafe或者ScriptNo这种插件
    dontwanttologin
    dontwanttologin
    Jun 19, 2013❤️1
    3
    @MrTwo 打电话到10000,以"到工信部投诉"为要挟,让他们把你从***列表中(名字忘记了)删除。
    switch
    switch
    Jun 19, 2013
    4
    why
    why
    Jun 19, 2013
    5
    它设置link和form的target干什么,让weibo.com成为首页?
    chairuosen
    chairuosen
    Jun 19, 2013
    6
    这代码写的,<script>也不给type
    xuc
    xuc
    Jun 19, 2013
    7
    联通一直挟持我的手机浏览器
    每天第一次上网就跳到这里 http://hao.hb165.com/
    muzuiget
    muzuiget
    Jun 20, 2013
    8
    打电话投诉,威胁投诉到宫刑部最有效的了。
    oldcai
    oldcai
    PRO
    Jun 20, 2013
    9
    @dontwanttologin
    @switch
    @muzuiget
    不用威胁,直接投诉吧。
    去年这个时候的样子,投诉了,然后没两天客服MM打电话过来,取消了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3357 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 04:22 · PVG 12:22 · LAX 20:22 · JFK 23:22
    ♥ Do have faith in what you're doing.