Skip to content

Handle anti-bot responses in link verification#11

Merged
ianfab merged 2 commits intomainfrom
claude/handle-antibot-links-XG1Gj
Dec 27, 2025
Merged

Handle anti-bot responses in link verification#11
ianfab merged 2 commits intomainfrom
claude/handle-antibot-links-XG1Gj

Conversation

@ianfab
Copy link
Copy Markdown
Member

@ianfab ianfab commented Dec 27, 2025

No description provided.

Add detection for anti-bot responses (Cloudflare challenges, etc.) and treat
them as successful checks since they are accessible to humans. The detection
includes:
- Cloudflare-specific indicators (cf-mitigated, cf-ray headers)
- Generic anti-bot patterns (challenge, captcha keywords)
- Restrictive security header combinations

Anti-bot protected links are logged as "OK - Anti-bot protection detected
(human-accessible)" to distinguish them from regular successful checks.
Combine retry logic from main with anti-bot detection. The script now:
- Retries failed requests up to 3 times (from main)
- Detects anti-bot protection and treats as success (from this branch)
- Anti-bot detection happens before retry, avoiding unnecessary retries
@ianfab ianfab merged commit 64d9dcc into main Dec 27, 2025
2 of 3 checks passed
@ianfab ianfab deleted the claude/handle-antibot-links-XG1Gj branch December 27, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants