Skip to content

Fix the findings of a full crawl with OpenSpider - #76

Merged
Musiker15 merged 2 commits into
mainfrom
fix/openspider-crawl-findings
Nov 24, 2026
Merged

Musiker15 merged 2 commits into
mainfrom
fix/openspider-crawl-findings

Conversation

@Musiker15

Copy link
Copy Markdown
Member

A full crawl of www.msk-scripts.de with OpenSpider (24.11.2026, 47,371 URLs) turned up the problems below. Most of those URLs came from one bug.

Gallery pagination without an end

On the last page of a gallery category the "Next" button was disabled only visually. The asChild link kept its href to page + 1, and every page past the end answered 200 with another "Next". The crawler followed that to page 2725 in all four categories and both languages, about 21,800 empty pages, and the last few answered 500.

  • Pages past the end now call notFound().
  • The buttons at either end render without a link.
  • listImages returns an empty page without querying rows once the offset passes the total. Before, ?page=1e300 or ?page=Infinity put OFFSET 6e+301 into the SQL.

Report form

  • Every image page links /report?url=…, 8,478 addresses with /report as canonical. The link now has rel="nofollow" and robots.txt disallows /en/report? and /de/inhalt-melden?. The form without a query stays crawlable.
  • The form read ?url= with useSearchParams inside Suspense, so the server streamed the h1 after the footer's h2. The page reads the parameter on the server now.

Smaller findings

  • Image page titles include the spawn name and fall back to shorter forms for long labels. "Trailer" was the title of 16 vehicle pages, some titles were wider than 580 px.
  • The empty "Props" category was indexable with "0 transparent GTA V props images" as description. Empty categories are now noindex.
  • Meta descriptions under 70 characters on imprint, privacy, terms and both bot statistics pages are longer.
  • Footer: "Powered by Tebex" is removed, nothing has been sold through Tebex since Retire the paid FiveM shop, scripts are free on GitHub #66, and tebex.io answers crawlers with 403. musiker15.de is linked as /de or /en, and the Discord invite uses discord.com/invite/… instead of the discord.gg redirect.

Not changed: the 307 from / (x-default) is intended, and the missing security headers on /_next/static/*.js don't matter for scripts.

Tests

tests/imageListing.test.ts (end of pagination, titles) and tests/robots.test.ts (query variants of the report form). Both were checked by removing the fix, which turned them red. Typecheck, lint and all 1,516 tests pass locally.

The image gallery paginated without end. On the last page the "Next"
button was only greyed out, its link still pointed one page further, and
pages past the end answered 200. A crawler followed that to page 2725 in
every category and language. Pages past the end now answer 404, the
buttons at either end have no href, and listImages skips the row query
once the offset passes the total, so ?page=1e300 no longer ends in a 500.

Other fixes from the same crawl:

- The report form rendered its heading after the footer, because it read
  ?url= with useSearchParams behind Suspense. The page now reads it on
  the server.
- Each image page links the report form with its own ?url=, 8,478
  addresses in total. The link is nofollow and robots.txt blocks the
  query variants, the form itself stays crawlable.
- Image page titles include the spawn name and get shorter for long
  labels. "Trailer" was the title of 16 different pages.
- An empty gallery category is noindex and no longer says "0 images".
- Longer meta descriptions for the legal and bot statistics pages.
- Footer: the Tebex credit is gone (nothing is sold through Tebex since
  the scripts went free), musiker15.de is linked in the page language,
  and Discord uses the invite address discord.gg redirected to.
@github-actions

Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-code-quality

github-code-quality Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/vitest

main 13dbaef fix/openspider-crawl... 8af758d +/-
73% 73% 0%
View coverage of the 1 most impacted file.
File main 13dbaef fix/openspider-crawl... 8af758d +/-
lib/images.ts 73% 81% +8%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated November 24, 2026 00:39 UTC

@graphify-labs graphify-labs 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.

Graphify review View in Graphify

Nothing blocking · 16 possible issues to check · Merge confidence 5/5

16 possible issues to check · High impact

The report page now passes its URL query value from the server to the form.

16 possible issues we couldn't confirm

They don't change the score.

Code graph · 248 functions depend on this change
  • 94 of 94 test files are affected by this change.
  • Gate, test list and every flagged function: in the Graphify check.

Reviewed a9f398b · Full report in the Graphify check

imageTitle said PNG for every image. It now takes the format from the
stored extension and only calls a PNG transparent.
@Musiker15
Musiker15 merged commit f6a6eff into main Nov 24, 2026
11 checks passed
@Musiker15
Musiker15 deleted the fix/openspider-crawl-findings branch November 24, 2026 13:50
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