fix: add reCAPTCHA v3 detection to navigate response#49
Closed
LuminDev wants to merge 9 commits into
Closed
Conversation
Detect invisible reCAPTCHA v3 (score-based) on pages by checking for Google's reCAPTCHA CDN scripts in the raw HTML. Unlike v2 (visible widget, already handled by CDN block detection), v3 has no visual feedback when it silently blocks headless browser form submissions. Changes: - Add recaptcha_detected field to FetchedPage struct - Add looks_like_recaptcha_v3() detection function in fetch.rs - Populate recaptcha_detected in both HTTP and browser fetch paths - Include recaptcha_detected in navigate MCP response JSON - Add 5 unit tests covering positive, negative, v2 overlap, and case-insensitive detection Closes #48
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…OG, page_state) Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Owner
|
Closing in favor of a cleaner approach. The core design of adding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Detect invisible Google reCAPTCHA v3 (score-based) on pages. Unlike v2 (visible checkbox widget, already handled by CDN block detection), v3 has no visual feedback — form submissions are silently rejected when the headless browser scores too low. This adds detection so users are warned.
Changes
recaptcha_detectedfield onFetchedPagestruct — surfaced in MCP navigate responselooks_like_recaptcha_v3()— checks HTML for Google reCAPTCHA CDN scripts (www.google.com/recaptcha/api.js/www.gstatic.com/recaptcha/releases/), excludes v2 visible widgetsE2E Verification
recaptcha_detected: true) — the page from the issuefalse)false)false)Test Results
Closes #48