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."