feat: 404 log and report endpoint

- POST /_seo/api/v1/notfound with the golem15.seo.notfound_token bearer
  (constant-time, off when unset), URL and referer caps, a row cap with
  an hourly warning, throttle bucket seo-notfound
- golem15.seo.notfound list by hits with Resolved rows, a preview with the
  resolved hint, a prompted 301 and a 410 record action, a bulk 410 that
  refuses a selection with a covered address
- every /_seo/api/v1 answer carries X-Robots-Tag: noindex
This commit is contained in:
2026-10-27 11:35:25 +01:00
parent 163b0aaf98
commit 6eb6cb7a4d
18 changed files with 997 additions and 15 deletions

View File

@@ -2,6 +2,7 @@ plugin:
name: SEO
description: Search engine metadata for every content type, URL rules and global SEO settings.
nav:
notfound: 404 log
redirects: Redirects
seo: SEO
history: History
@@ -237,3 +238,33 @@ redirects:
delete_selected_confirm:
one: "Delete :count redirect? Its source address will return 404 again. You can undo it in History."
other: "Delete :count redirects? Their source addresses will return 404 again. You can undo it in History."
notfound:
list_title: "404 log"
name: "404 address"
url: "Address"
hits: "Hits"
last_hit: "Last hit"
first_seen: "First seen"
referer: "Last referer"
state_resolved: "Resolved"
filter_status: "Status"
filter_status_open: "Open"
filter_status_resolved: "Resolved"
preview: "Address that returned 404"
resolved_hint: "Resolved by “:rule”. This address no longer returns 404."
redirect: "Create redirect…"
redirect_prompt: "Redirect to (301)"
redirect_placeholder: "/new-address"
redirect_comment: "A path or a full URL. To use 302, edit the redirect afterwards."
redirect_confirm: "Create a 301 redirect from this address?"
redirected: "Redirect “:url” → “:target” created."
gone: "Mark as gone (410)"
gone_confirm: "Answer this address with 410 Gone? Search engines drop it faster than a 404. You can undo it in History."
gone_selected_confirm: "Answer the selected addresses with 410 Gone? You can undo it in History."
gone_done: "410 Gone created for “:url”."
gone_selected_done: "410 Gone created for the selected addresses."
has_rule: "A redirect for “:url” already exists. Edit it in Redirects."
list_empty: "No 404 errors recorded. Addresses that return 404 appear here with their hit count."
delete_selected_confirm:
one: "Remove :count address from the log? It is added again on its next 404."
other: "Remove :count addresses from the log? They are added again on their next 404."

View File

@@ -2,6 +2,7 @@ plugin:
name: SEO
description: Metadane dla wyszukiwarek we wszystkich typach treści, reguły adresów i globalne ustawienia SEO.
nav:
notfound: Dziennik 404
redirects: Przekierowania
seo: SEO
history: Historia zmian
@@ -243,3 +244,35 @@ redirects:
few: "Usunąć :count przekierowania? Ich adresy źródłowe znowu zwrócą 404. Możesz to cofnąć w Historii zmian."
many: "Usunąć :count przekierowań? Ich adresy źródłowe znowu zwrócą 404. Możesz to cofnąć w Historii zmian."
other: "Usunąć :count przekierowania? Ich adresy źródłowe znowu zwrócą 404. Możesz to cofnąć w Historii zmian."
notfound:
list_title: "Dziennik 404"
name: "Adres 404"
url: "Adres"
hits: "Wejścia"
last_hit: "Ostatnie wejście"
first_seen: "Pierwsze wejście"
referer: "Ostatnie źródło"
state_resolved: "Rozwiązany"
filter_status: "Stan"
filter_status_open: "Otwarte"
filter_status_resolved: "Rozwiązane"
preview: "Adres, który zwrócił 404"
resolved_hint: "Rozwiązane przez „:rule”. Ten adres nie zwraca już 404."
redirect: "Utwórz przekierowanie…"
redirect_prompt: "Przekieruj na (301)"
redirect_placeholder: "/nowy-adres"
redirect_comment: "Ścieżka lub pełny adres. Aby użyć 302, edytuj potem przekierowanie."
redirect_confirm: "Utworzyć przekierowanie 301 z tego adresu?"
redirected: "Utworzono przekierowanie „:url” → „:target”."
gone: "Oznacz jako usunięty (410)"
gone_confirm: "Odpowiadać na ten adres kodem 410 Gone? Wyszukiwarki usuną go szybciej niż przy 404. Możesz to cofnąć w Historii zmian."
gone_selected_confirm: "Odpowiadać kodem 410 Gone na zaznaczone adresy? Możesz to cofnąć w Historii zmian."
gone_done: "Utworzono 410 Gone dla „:url”."
gone_selected_done: "Utworzono 410 Gone dla zaznaczonych adresów."
has_rule: "Przekierowanie dla „:url” już istnieje. Edytuj je w Przekierowaniach."
list_empty: "Nie zarejestrowano błędów 404. Adresy zwracające 404 pojawią się tutaj z liczbą wejść."
delete_selected_confirm:
one: "Usunąć :count adres z dziennika? Wróci przy następnym błędzie 404."
few: "Usunąć :count adresy z dziennika? Wrócą przy następnym błędzie 404."
many: "Usunąć :count adresów z dziennika? Wrócą przy następnym błędzie 404."
other: "Usunąć :count adresu z dziennika? Wrócą przy następnym błędzie 404."