Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to emulate a robot behaviour when using Google Recaptcha V3

I have implemented google recaptcha v3 in my application and i'm pretty confident that it is working (when testing it I get the response I'm expecting). However I am but a simple human and I would like to test my code by emulating a robot behaviour. It would work with recaptcha v2 by modify the headers with the extension "Modify Headers for Google Chrome" but in this case, I get the same score as with a normal human header.
Is this an expected outcome ?
Is this an unexpected outcome and something is wrong with what I wrote ?
Or is there another, better tool to emulate a robot ?

like image 906
NicolasR Avatar asked Mar 14 '19 16:03

NicolasR


1 Answers

Is it possible to force fail a recaptcha v3 for testing purposes(I.e. pretend to be a robot) by changing the user-agent like Googlebot/2.1 in developer tool.

Source to change the user agent (http://osxdaily.com/2013/01/16/change-user-agent-chrome-safari-firefox/)

recaptcha demo - https://recaptcha-demo.appspot.com/recaptcha-v3-request-scores.php

like image 164
Aran Avatar answered Oct 22 '22 03:10

Aran