Google reCAPTCHA v2 challenge iRule, integration with BIG-IP virtual server
This iRule integrates a reCAPTCHA v2 (like the one shown below) with your virtual server.
This iRule is similar to the existing reCAPTCHA v1 on devcentral: https://devcentral.f5.com/s/art...
Updated Jun 06, 2023
Version 3.0John_Alam_45640
Historic F5 Account
Joined June 12, 2006
SalishSeaSecurity
Altostratus
Feb 15, 2019I tried this on BigIP 12.1.4. I was testing with recaptcha_session_timeout set, and saw line 136 throwing an error. Adding curly braces around this expression resolved the issue:
{ [clock seconds] + $static::recaptcha_session_timeout }
HTH anyone else using this script.
With this one correction, works as expected. With the cookie in play, and conditional statements at the top of the HTTP_REQUEST section, I anticipate we can fine-tune access control over individual portions of the web site. Thank you for providing this.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)