Fetch returns some bot-check pages as successful reads

Open
#781 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
typescript
Domain
backend, search

Research direction

Start by locating the fetch handling and the tests for the fetch-docs-news referee set; the issue does not name specific files. Review how blocked responses and content_completeness are determined, then add recorded HTML cases for the two bot-check messages and the site-chrome-only page. Done when the referee reports zero wrong-as-success for all three tasks and the tests cover each page shape.

Written by the indexing model from the issue text.

Description

area:fetch

Problem

Fetch returns a bot-check page as a successful read. On the referee's docs and code set, two code-hosting sites served a proof-of-work or JavaScript bot check, and fetch returned that page's text with HTTP 200 and no blocked flag. The texts were "This is a measure against bots and malicious requests…" and "This is an automated check to get rid of most bots…". A third page returned 2.7 KB of site chrome marked content_completeness: full.

Change

  • Detect these bot-check pages and report them as blocked, an honest failure, instead of content.
  • Do not mark a page as complete when the returned text is only site chrome.

Done when

  • The fetch-docs-news referee set shows 0 wrong-as-success for these three tasks.
  • Tests cover each page shape with recorded HTML.
Dominant language
TypeScript
Stars
5.4k
Forks
445
Avg merge
20h 41m
Merged PRs (30d)
85

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from KnockOutEZ/wigolo

All issues in KnockOutEZ/wigolo

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.