Skip to content

Allow crawlers to read robots.txt when indexing is disabled - #613

Open
dajiaohuang wants to merge 1 commit into
redlib-org:mainfrom
dajiaohuang:fix/robots-txt-crawler-access
Open

dajiaohuang wants to merge 1 commit into
redlib-org:mainfrom
dajiaohuang:fix/robots-txt-crawler-access

Conversation

@dajiaohuang

Copy link
Copy Markdown

Fixes #611.

When indexing is disabled, let crawlers retrieve /robots.txt so they can read Disallow: /. Keep the configured crawler block on all other routes. Add a regression test for both behaviors.

Validation: cargo fmt --all -- --check and git diff --check pass. cargo test was attempted three times but could not build �tls-sys on this Windows host: CMake reported No CMAKE_C_COMPILER could be found using the Visual Studio 18 generator, even after entering its developer shell. Tests did not run; cargo nextest and Clippy were not run because they share the blocked native dependency build.

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.

🐛 Bug Report: Crawlers can't read robots.txt

1 participant