V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
simple_plan
V2EX  ›  问与答

怎么监听游览器网址?

  •  
  •   simple_plan · May 29, 2011 · 5304 views
    This topic created in 5448 days ago, the information mentioned may be changed or developed.
    怎么监听游览器网址?然后对特定的网址进行跳转?
    比如一访问http://www.baidu.com/ 就跳转到http://www.google.com.hk/。。。
    用java的HttpClient??
    8 replies    1970-01-01 08:00:00 +08:00
    ldcr99
        1
    ldcr99  
       May 29, 2011
    貌似是dns的作用....(可能)

    因为我在网吧使用google的时候 往往点击搜索结果会被重置到baidu主页..而不是lz所说的这种主页就直接跳...

    我想,如果没有网吧的主页服务,baidu的流量会跌多少.

    而看到很多也已经开始使用soso了...囧
    simple_plan
        2
    simple_plan  
    OP
       May 29, 2011
    @ldcr99 谢谢~ 不过我是想实现这功能 不是说我的游览器有这问题~~~
    reus
        3
    reus  
       May 30, 2011
    改hosts,把baidu.com解释到google的ip。。。
    simple_plan
        4
    simple_plan  
    OP
       May 30, 2011
    @reus 谢谢 上面的是我的一个举例~ 我想把http://abc.com 换成随意的我想要的 http://i_want.com~
    骨耐先。
    POPOEVER
        5
    POPOEVER  
       May 30, 2011
    直接在路由器上设置转发吧
    chone
        6
    chone  
       May 30, 2011
    simple_plan
        7
    simple_plan  
    OP
       May 30, 2011
    @chone IE的咋办?
    fanzeyi
        8
    fanzeyi  
       May 30, 2011
    自架 DNS Server = =
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4439 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 00:11 · PVG 08:11 · LAX 17:11 · JFK 20:11
    ♥ Do have faith in what you're doing.