Skip to content

Redirect seventeen guessed Learn URLs that crawlers keep requesting - #3175

Open
ktsaou wants to merge 2 commits into
masterfrom
ai-guessed-url-redirects
Open

ktsaou wants to merge 2 commits into
masterfrom
ai-guessed-url-redirects

Conversation

@ktsaou

@ktsaou ktsaou commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

AI assistants and their crawlers keep requesting Learn paths that never existed or no longer do. Cloudflare's edge data for the last 28 days shows about 9,000 such requests and no human sessions in GA4. Most come from Meta's crawler; a few come from Googlebot and Claude.

This PR adds 17 exact rules. Each sends a guess with one clear subject to the page that covers it today.

Requests (28 days) Source Target
1,358 /docs/netdata-ai/machine-learning-and-anomaly-detection /docs/netdata-ai/anomaly-detection
1,134 /docs/netdata-agent/configuration/optimize-the-netdata-agents-performance /docs/netdata-agent/configuration/performance-optimization
1,078 /docs/netdata-ai/machine-learning-anomaly-detection /docs/netdata-ai/anomaly-detection
1,008 /docs/netdata-agent/configuration/running-the-agent-behind-a-reverse-proxy .../securing-agents/running-the-agent-behind-a-reverse-proxy
758 /docs/netdata-agent/machine-learning-and-anomaly-detection /docs/netdata-ai/anomaly-detection
493 /docs/netdata-agent/ml-anomaly-detection /docs/netdata-ai/anomaly-detection
395 /docs/netdata-ai/anomaly-advisor /docs/netdata-ai/troubleshooting/anomaly-advisor
361 /docs/netdata-agent/observability-centralization-points /docs/netdata-parents
283 /docs/netdata-anomaly-detection /docs/netdata-ai/anomaly-detection
266 /docs/collectors /docs/collecting-metrics/collectors
238 /docs/netdata-agent/machine-learning-anomaly-detection /docs/netdata-ai/anomaly-detection
203 /docs/netdata-agent/ml /docs/netdata-ai/anomaly-detection
153 /docs/alerts-&-notifications/configure-health-alerts /docs/alerts-&-notifications/alert-configuration-reference
146 /docs/collecting-metrics/system-metrics/system-statistics .../collectors/operating-systems/system-statistics
122 /docs/netdata-agent/daemons /docs/netdata-agent/daemon
111 /docs/netdata-agent/collectors /docs/collecting-metrics/collectors
109 /docs/netdata-agent/streaming /docs/netdata-parents

Some guesses have no single clear subject, for example /docs/netdata-agent/real-time-monitoring, /docs/netdata-agent/configuration/running-the-agent and /docs/netdata-ai/alerts-and-notifications. They stay on the 404 page.

Validation

  • Every source returns 404 in production today. None has an existing exact rule, and no wildcard covers any of them.
  • Every target returns 200 in production and appears in the live sitemap.
  • The static section of netlify.toml is byte-identical to static.toml.
  • I ran scripts/verify-redirect-graph.js against a route tree built from the live sitemap and static/. The branch verifies 3,931 redirects, which is master's 3,914 plus these 17.

Summary by cubic

Adds 17 exact redirects for Learn doc paths that never existed or no longer do, but that crawlers keep requesting — about 9,000 requests in 28 days with no human sessions. Each now goes to the page that covers its subject; guesses without one clear subject still return 404.

Validation

  • Both netlify.toml and static.toml receive identical rules.
  • Every source returns 404 in production today and no wildcard covers it; every target returns 200 and appears in the live sitemap.

Written for commit dc3c884. Summary will update on new commits.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • Documentation
    • Added redirects from alternate and outdated documentation URLs to current pages for anomaly detection, troubleshooting, performance and reverse-proxy configuration, Netdata Parents, daemons and collectors, system statistics, and health-alert configuration.
    • Visitors using these URLs are now directed to the relevant current documentation.

AI assistants and their crawlers request documentation paths that never
existed or no longer do, hundreds of times a month each (about 9,000
requests in 28 days at the edge, no human sessions). Send the ones with
one clear subject to the page that covers it: anomaly detection, Anomaly
Advisor, performance optimization, reverse proxy, Parents and streaming,
the daemon, collectors, system statistics and alert configuration.
Guesses without a clear subject stay on the 404 page.

The static section of netlify.toml mirrors static.toml.
@netlify

netlify Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for netdata-docusaurus ready!

Name Link
🔨 Latest commit 62951f5
🔍 Latest deploy log https://app.netlify.com/projects/netdata-docusaurus/deploys/6ae688e9a333cfc5cc63863e
😎 Deploy Preview https://deploy-preview-3175--netdata-docusaurus.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9f611abf-4cda-4281-806b-54a96c029d96
Commits

Reviewing files that changed from the base of the PR and between 7330ae1 and dc3c884.

Files selected for processing: 2
  • netlify.toml
  • static.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The pull request adds static redirects for guessed and obsolete documentation URLs in netlify.toml and static.toml. The rules point to current pages for anomaly detection, agent configuration, Netdata Parents, daemons, collectors, system statistics, and health-alert configuration.

Changes: Documentation URL redirects

Layer / File(s) Summary
Add documentation redirect rules
static.toml, netlify.toml
Both files add redirects from guessed or obsolete documentation paths to current pages. The paths cover anomaly detection and its troubleshooting page, agent performance and reverse-proxy configuration, Netdata Parents, daemons, collectors, system statistics, and health-alert configuration.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: ilyam8

Merge Risk: Minimal · up to dc3c8

The redirect changes are ready to merge with no identified functional or operational risk.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Redirect seventeen guessed Learn URLs that crawlers keep requesting" matches the main change. The PR adds 17 exact redirects for guessed paths that crawlers request, and the summary describ…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Redirect seventeen guessed Learn URLs that crawlers keep requesting" matches the main change. The PR adds 17 exact redirects for guessed paths that crawlers request, and the summary describes redirect rules in netlify.toml and static.toml. The title is specific and short. It does not name the docs platform, but it states the primary change clearly.

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 2 files

Architecture diagram
sequenceDiagram
    participant Crawler as AI Crawler / User
    participant Edge as Netlify Edge
    participant Config as netlify.toml / static.toml
    participant Generator as Redirect Generator
    participant LR as Live Redirect Rules
    participant Sitemap as Live Sitemap
    participant Target as Target Page (200)
    participant Verify as verify-redirect-graph.js

    Note over Crawler,Target: Static Site Redirect Flow

    Crawler->>Edge: GET /docs/netdata-ai/machine-learning-and-anomaly-detection
    Edge->>Config: Load redirect rules (netlify.toml)
    Edge->>Generator: Match source against [[redirects]] rules
    alt Exact match found (NEW: guessed address rule)
        Generator-->>Edge: Found rule (source -> target)
        Edge->>LR: Apply exact redirect (301)
        LR-->>Crawler: 301 Redirect to /docs/netdata-ai/anomaly-detection
        Crawler->>Target: Follow redirect
        Target-->>Crawler: 200 OK (HTML page)
    else No match (still 404)
        Generator-->>Edge: No rule found
        Edge-->>Crawler: 404 Not Found
    end

    Note over Config,Verify: Redirect Validation Flow

    Config->>Verify: Load netlify.toml + static.toml
    Verify->>Sitemap: Fetch live sitemap
    Sitemap-->>Verify: Route tree (targets)
    Verify->>Verify: Check all 3,931 redirects resolve
    alt Target in sitemap
        Verify-->>Target: Confirms 200 status
    else Target missing
        Verify-->>Verify: Flag dead redirect
    end
Loading

Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread netlify.toml Resolved
/docs/collectors and /docs/netdata-agent/collectors name the collectors
themselves, which /docs/collecting-metrics/collectors lists; the
Collecting Metrics overview is one level too broad.

This branch has not been deployed

No deployments
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.

1 participant