Skip to content

feat: obey robots.txt by default - #3212

Open
pasmud wants to merge 1 commit into
lightpanda-io:mainfrom
pasmud:gaz/lightpanda-io-browser
Open

feat: obey robots.txt by default#3212
pasmud wants to merge 1 commit into
lightpanda-io:mainfrom
pasmud:gaz/lightpanda-io-browser

Conversation

@pasmud

@pasmud pasmud commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #3208 and #3156: Lightpanda ignored robots.txt unless --obey-robots was 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, and agent modes.

Changes

  • src/Config.zig: obey_robots now defaults to true. The flag becomes --no-obey-robots to opt out; --obey-robots is still accepted as an explicit opt-in (backward compatible).
  • src/help.zon: updated --no-obey-robots help 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 --check passes on all changed files.
  • A full zig build test could not run in this environment: the build fetches V8 and other dependencies from GitHub, which the sandbox network proxy rejects (HTTP fetch fails with HttpConnectionClosing/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 against src/cli.zig.

@github-actions

github-actions Bot commented Aug 17, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@pasmud

pasmud commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@jappeace jappeace left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what a good idea!

@t4ccer t4ccer left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

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.

Lightpanda clients abusing Gentoo Linux infrastructure - lightpanda ignoring robots.txt completely

5 participants