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

怎样防止网站检测出来使用了 phantomjs 或者 chromedriver?

  •  1
     
  •   qwertty01 · Nov 16, 2017 · 2691 views
  •   You need to sign in to view this topic
    This topic created in 3089 days ago, the information mentioned may be changed or developed.

    现象描述: 网站有一个普通滑动验证码,当使用普通浏览器访问的时候手动滑会通过,但使用 chromedriver 访问时手动滑会显示失败,如何解决?

    6 replies    2018-01-18 16:25:47 +08:00
    qwertty01
        1
    qwertty01  
    OP
       Nov 16, 2017 via Android
    看了下 UA,是正常的 UA。
    HYSS
        2
    HYSS  
       Nov 16, 2017
    phantomjs 可以模拟手动滑动?
    qwertty01
        3
    qwertty01  
    OP
       Nov 16, 2017 via Android
    @HYSS phantomjs 提供了相应的函数
    woodensail
        4
    woodensail  
       Nov 16, 2017
    要模拟也得模拟得像一点吧,要是随便一个写死的横向移动就能过,那写风控的人也太失败了吧。
    qwertty01
        5
    qwertty01  
    OP
       Nov 16, 2017
    @woodensail 我是使用 chromedriver 打开主页,自己手动滑的。并不是使用代码滑的。
    qwertty01
        6
    qwertty01  
    OP
       Jan 18, 2018
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2331 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 196ms · UTC 01:38 · PVG 09:38 · LAX 18:38 · JFK 21:38
    ♥ Do have faith in what you're doing.