17
205
Fork
You've already forked human.json
6

chore: improve crawler logic #42

Merged
robida merged 1 commit from improve-crawl into main 2026年03月25日 16:05:58 +01:00

The current recommendation on the spec for verifiers is:

Enforce a reasonable size limit when fetching human.json (e.g., 1 MB) to avoid abuse

(1MB should be enough for 10,000+ vouched entries.) The browser extensions enforce this, but in a naive way — if the content-length request header indicates a file size smaller than 1MB the extension will download, check the size, and disregard if bigger than 1MB. But it still downloads the whole file, which would allow a malicious user to crash the extension by serving a huge file with a fake header.

This PR improves the crawling logic by stopping the request once the file has exceeded the request.

The current recommendation on the spec for verifiers is: > Enforce a reasonable size limit when fetching human.json (e.g., 1 MB) to avoid abuse (1MB should be enough for 10,000+ vouched entries.) The browser extensions enforce this, but in a naive way — if the `content-length` request header indicates a file size smaller than 1MB the extension will download, check the size, and disregard if bigger than 1MB. But it still downloads the whole file, which would allow a malicious user to crash the extension by serving a huge file with a fake header. This PR improves the crawling logic by stopping the request once the file has exceeded the request.
robida deleted branch improve-crawl 2026年03月25日 16:06:01 +01:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
robida/human.json!42
Reference in a new issue
robida/human.json
No description provided.
Delete branch "improve-crawl"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?