Override reCaptcha

Hello guys,Scenario:
I have some Ips that are safe, I need to deactivate the Recaptcha in these cases, this on the login page. Otherwise other Ips should see the Recaptcha.How can I do this?Thank you for you help.

You need to extend the class ReCaptcha and override the vaidate() method. You can put your code in server side Global Code (see Server Events and Client Scripts in help file), then you can change the captcha class by:$CaptchaClass = “MyReCaptcha”; // Override default ReCaptcha class by your own class MyReCaptcha

Thank for your help.How i made it.You can Generate it, with the extension Recaptcha ON in the Extension.For Server Events → Global → All Pages → Global Codeif (strpos(’ '.$_SERVER[‘HTTP_HOST’],“localhost”)>0) { // Testing on local PC
$CaptchaClass = “CaptchaBase”; /// Without Recaptcha
}The Recaptcha website will be activated.Any suggestions thanks.

Thanks for this.I’m using a server on my local network for development, but the production server is online
I modded the code a little, so that recaptcha is disabled based on server IP address

//Disable reCaptcha for locally hosted servers
$localIPs="192.168.1.100, 192.168.1.101";  // ip addresses of local servers
if (strpos($localIPs,$_SERVER['SERVER_ADDR'])>0) { // check if allowed local IP without recaptcha
$CaptchaClass = "CaptchaBase"; /// Without Recaptcha
}