feat: obey robots.txt by default - #3212
Open
pasmud wants to merge 1 commit into
Open
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Xe
approved these changes
Aug 17, 2026
robbat2
approved these changes
Aug 18, 2026
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.
Fixes #3208 and #3156: Lightpanda ignored
robots.txtunless--obey-robotswas passed, letting crawls run against sites that explicitly disallow them (Gentoo, Haskell infra were hit hard).The robots.txt gate was already fully implemented and correct; the only problem was the default. This change flips the option so robots.txt is respected out of the box in
fetch,serve,mcp, andagentmodes.Changes
src/Config.zig:obey_robotsnow defaults totrue. The flag becomes--no-obey-robotsto opt out;--obey-robotsis still accepted as an explicit opt-in (backward compatible).src/help.zon: updated--no-obey-robotshelp text and default.README.md: examples no longer pass--obey-robots; documented the new default and the opt-out flag.src/cdp/domains/lp.zig: comment updated to reflect the new default.Verification
zig fmt --checkpasses on all changed files.zig build testcould not run in this environment: the build fetches V8 and other dependencies from GitHub, which the sandbox network proxy rejects (HTTP fetch fails withHttpConnectionClosing/TemporaryNameServerFailure). The change is confined to the declarative CLI option table plus docs; the CLI framework's bool semantics (presence flips the field opposite its default; variants without a default flip to true) were verified againstsrc/cli.zig.