Is it possible to force fail a recaptcha v2 for te

2019-02-04 00:50发布

I'm implementing an invisible reCAPTCHA as per the instructions in the documentation: reCAPTCHA V2 documentation

I've managed to implement it without any problems. But, what I'd like to know is whether I can simulate being a robot for testing purposes?

Is there a way to force the reCAPTCHA to respond as if it thought I was a robot?

Thanks in advance for any assistance.

标签: recaptcha
6条回答
等我变得足够好
2楼-- · 2019-02-04 01:01

I find that if you click on the reCaptcha logo rather than the text box, it tends to fail.

This is because bots detect clickable hitboxes, and since the checkbox is an image, as well as the "I'm not a robot" text, and bots can't process images as text properly, but they CAN process clickable hitboxes, which the reCaptcha tells them to click, it just doesn't tell them where.

Click as far away from the checkbox as possible while keeping your mouse cursor in the reCaptcha. You will then most likely fail it. ( it will just bring up the thing where you have to identify the pictures).

The pictures are on there because like I said, bots can't process images and recognize things like cars.

查看更多
可以哭但决不认输i
3楼-- · 2019-02-04 01:04

In the Dev Tools, open Settings, then Devices, add a custom device with any name and user agent equal to Googlebot/2.1.

Finally, in Device Mode, at the left of the top bar, choose the device (the default is Responsive).

You can test the captcha in https://www.google.com/recaptcha/api2/demo?invisible=true

(This is a demo of the Invisible Recaptcha. You can remove the url invisible parameter to test with the captcha button)

查看更多
乱世女痞
4楼-- · 2019-02-04 01:13

yes it is possible to force fail a recaptcha v2 for testing purposes.

there are two ways to do that

First way :

you need to have firefox browser for that just make a simple form request and then wait for response and after getting response click on refresh button firefox will prompt a box saying that " To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. " then click on "resend"

by doing this browser will send previous " g-recaptcha-response " key and this will fail your recaptcha.

Second way

you can make any simple post request by any application like in linux you can use curl to make post request.

just make sure that you specify all your form filed and also header for request and most important thing POST one field name as " g-recaptcha-response " and give any random value to this field

查看更多
Emotional °昔
5楼-- · 2019-02-04 01:16

You can use a Chrome Plugin like Modify Headers and Add a user-agent like Googlebot/2.1 (+http://www.google.com/bot.html).

查看更多
混吃等死
6楼-- · 2019-02-04 01:27

Just completing the answer of Rafael, follow how to use the plugin

Modify headers Google Bot 2.1

查看更多
We Are One
7楼-- · 2019-02-04 01:27

For Firefox, if you don't want to install any add-ons, you can easily manually change the user agent :

  1. Enter about:config into the URL box and hit return;
  2. Search for “useragent” (one word), just to check what is already there;
  3. Create a new string (right-click somewhere in the window) titled (i.e. new
    preference) “general.useragent.override”, and with string value
    "Googlebot/2.1" (or any other you want to test with).

I tried this with Recaptcha v3, and it indeed returns a score of 0.1

And don't forget to remove this line from about:config when done testing !

I found this method here (it is an Apple OS article, but the Firefox method also works for Windows) : http://osxdaily.com/2013/01/16/change-user-agent-chrome-safari-firefox/

查看更多
登录 后发表回答