跳到正文
DEV Community· Posting Dude·· 2 小時前AI 評分51

Posting Dude 檢查 13 個網站的 2,355 條連結,發現一條目錄連結轉向越南足球直播網站

I Checked 2,355 Links on 13 of My Sites. One Listing Now Sends People to a Football Streaming Site

AI 導讀

Posting Dude 檢查自己 13 個網站的 2,355 條連結,發現其中一個目錄的產品連結現時會轉向越南足球直播網站。他以 Python 和 curl 檢查連結的首次回應,並把 403/429 列為無法判定,而非直接視作失效。文章提出每週執行檢查,只在出現跨網域重新導向或連續兩次失效時發出提醒。

正文

I run a handful of launch sites and directories, and every product page on them ends in the same thing: a link out to the maker's site. I check my own pages a lot (status codes, sitemaps, canonicals, you name it). I had never once checked where those outbound links actually land today.

So this morning I did. 13 of my sites, 10 pages each (the homepage plus 9 pages spread across each sitemap), every <a href> on those pages, one request each with redirects not followed so I could see the first hop.

That came to 2,355 unique links: 1,607 internal, 748 outbound. Checked Nov 24, 2026, between about 10:15 and 10:30 AM IST.

The short version: my own internal links were nearly fine. The outbound ones are where the rot is. And one listing on my directory now redirects to a Vietnamese football streaming site.

Internal links: 1,594 of 1,607 were a plain 200

The 13 that weren't:

  • 5 redirects, all expected: "submit" and "dashboard" links that bounce a logged-out visitor to a sign-in page (307 or 302). Fine for people. I'm not going to fight that.
  • 4 links returning 500. All four press sites I run have a /projects link in the nav, on 9 of the 10 pages I checked on each. For a logged-out visitor it returns a Next.js error page with status 500. That's 36 page-level links to a server error, on sites whose whole job is to look trustworthy to editors. Embarrassing, and the first thing I'm fixing.
  • 4 links returning 404. Best Launch Platforms links /auth.md from all 10 pages I checked, and /AGENTS.md from 2. IndieHunt links /AGENTS.md and /plugin.json from its homepage. These are files for AI agents that the templates link to but the deploys don't serve.

Separately, 6 links to my own GitHub repos 404 for anyone not logged in as me. Some are private, and two have truncated names (/earlyhu, /sidehu) which means someone (me) typed them wrong in a footer once and never looked again. The Product Hunt Alternatives one is on all 10 pages I checked.

Bar chart of 748 outbound links from 130 pages on 13 indie launch sites, grouped by HTTP result: 579 returned 200, 79 blocked the checker, 54 redirected on the same site, 12 redirected to a different domain, 12 were dead, 6 were my own GitHub links returning 404
Where 748 outbound links from my launch sites landed on Nov 24, 2026. One request each, redirects not followed.

Outbound links: 748 checked, 18 just don't work

Here's how the 748 split:

Result Links
200 OK (or 202) 579
403 / 429, blocked my checker 79
Redirect, same site (www, trailing slash, /en) 54
Redirect to a different domain 12
Dead: 404, 410, 5xx or the TLS handshake fails 12
My own GitHub links, 404 6
Couldn't test (plain http:// or archive links) 6

The 79 blocked ones I can't call either way. Cloudflare and friends return 403 to a curl user agent all the time, and the page might be perfectly fine in a browser. I'm leaving them out of any conclusion.

The 12 dead ones are 11 products. One returns 404 on its homepage and it's linked from 8 of the Aura++ pages I checked, because it sits in a "live today" sidebar card. One returns 410 Gone, which is about as clear as a website can be. Four return 502, 503, 520 or 525 (the last two are Cloudflare saying the origin is broken). Five fail the TLS handshake from my box, and one of those doesn't resolve on Cloudflare's DNS at all.

These are real products that someone launched on my sites, sometimes only weeks ago. A launch page that sends a reader to a dead site is useless to the reader and to the maker.

The 12 cross-domain redirects

This was the part I wanted to see. Leaving out twitter.com to x.com and one dev tool that moved to its new home, 6 listing domains now land on a different domain:

  • 4 look like rebrands or a product folded into a sister product. Old name, new name, same kind of thing.
  • 1 music product now lands on a songwriting app with a different name. Could be a rebrand, could be a sale. I can't tell from the outside.
  • 1 lands on xoilac66.info, whose page title (in Vietnamese) is a live football streaming site.

That last one is the one that matters. It looks like the founder let the domain go, someone else picked it up, and now my directory's "visit site" button sends people to a streaming site. With my UTM tags still attached, nicely tracked.

It's the same failure as a dangling DNS record, just one level up. I wrote about an old CNAME that let spammers send mail as a big brand last month. A listing link is the same thing: a pointer you stopped looking at, to something someone else can now own.

Also: 7 of the redirects throw away the UTM tags on the way. So the maker's analytics never sees that the visit came from my site, which is half the point of being listed.

The script

Nothing fancy. Python plus curl, so I see exactly what a dumb client sees:

import re, subprocess, urllib.parse as up
from concurrent.futures import ThreadPoolExecutor

def fetch(url):
    r = subprocess.run(["curl", "-s", "-m", "20", url], capture_output=True)
    return r.stdout.decode("utf8", "ignore")

def first_hop(url):
    # no -L: I want the first answer, not where it ends up
    r = subprocess.run(["curl", "-s", "-o", "/dev/null", "-m", "20",
                        "-w", "%{http_code} %{redirect_url}", url],
                       capture_output=True, text=True)
    code, _, loc = r.stdout.partition(" ")
    return code, loc

def links(page):
    html = fetch(page)
    for href in re.findall(r'<a[^>]+href="([^"#]+)"', html):
        u = up.urljoin(page, href.replace("&amp;", "&"))
        if u.startswith("http"):
            yield u

pages = ["https://example.com/", "https://example.com/some-page"]
found = {u for p in pages for u in links(p)}
with ThreadPoolExecutor(16) as ex:
    for u, (code, loc) in zip(found, ex.map(first_hop, found)):
        if code != "200":
            host = lambda x: up.urlparse(x).netloc.removeprefix("www.")
            flag = "OTHER DOMAIN" if loc and host(u) != host(loc) else ""
            print(code, u, "->", loc, flag)

A few things I learned running it:

  • Don't follow redirects for the first pass. With -L you see a 200 at the end and miss the fact that it's a 200 on somebody else's domain.
  • Compare hosts, not URLs. www. to apex and a trailing slash are noise. A different registrable domain is the signal.
  • Treat 403 as unknown, not dead. Otherwise half of your list is "broken" and you stop trusting the report.
  • Count how many pages carry each bad link. The sidebar card one showed up on 8 of 10 pages. That's one fix that clears most of the damage.

Table of broken internal links on 13 of my sites, Nov 24 2026: /projects returns 500 on four press sites, /auth.md and /AGENTS.md 404 on Best Launch Platforms, /AGENTS.md and /plugin.json 404 on IndieHunt, and 6 GitHub repo links that 404 publicly
The 8 broken internal links and 6 dead GitHub links on my own pages, with how many of the checked pages carry each one.

Why I care (it's not just SEO)

Sending crawlers to a hijacked domain isn't a great look, sure. But the bigger reason is that a launch site sells exactly one thing: a working link to the maker's product. I've written before about what makes a backlink worth anything, and "the page it points to still exists" is the bit nobody writes down because it sounds too obvious.

It's the same lesson as when I found my "Not Found" pages were answering 200 OK. Every tool trusted a status code I'd never actually looked at. This time it was everybody else's status code, shown on my pages.

What I'm doing about it

  1. Fix the four /projects 500s and stop linking files the deploys don't serve.
  2. Fix or remove the GitHub links in the footers.
  3. Pull the listing that now lands on the streaming site, and email the maker in case they don't know their old domain is gone.
  4. For the dead ones: mark the listing as "site unreachable" after two failed checks a week apart, instead of deleting it. Products go down for a day all the time.
  5. Run this weekly, as a cron on the directories I run, like Uno Directory, and alert only on cross-domain redirects and anything dead twice in a row.

If you run a directory or a launch site, I'd like to know how you handle a listing whose domain changes hands. Remove it quietly, flag it publicly, or ask the maker first?

來源:DEV Community · dev.to