Sub topic 10
Checking that a mention is really unlinked
This chapter assumes you can read HTML anchor tags, know what rel="nofollow" means, and have a list of candidate pages from mention discovery, such as search operator results or alert exports. Discovery gives you pages that name your brand. Verification decides which of those pages actually lack a link to you. If you skip it, you will email people who already linked to you, and that wastes goodwill.
Why verification is its own step
Search operators like "Acme Analytics" -site:acme-analytics.com match text. They do not look at the page's anchors. A page can match the query and still link to you in the same paragraph. The reverse also happens: a page you never find through search can be unlinked.
A mention is unlinked only when all of these are true:
- The page text names your brand in a way that refers to your company.
- No anchor on the page points to your domain.
- The page is live, public and reachable by a crawler.
Each condition has failure cases, covered below.
Cases that look unlinked but are not
Check for these before you write an email.
- Subdomain or
wwwlinks. A link towww.acme-analytics.comorblog.acme-analytics.compoints to you. Compare hosts by exact match or by a dot-prefixed suffix, not by substring. - Links to deep pages. The link may go to a pricing page or an old blog post, not your home page. It still counts as a link.
- Attributed links. A link with
rel="nofollow",rel="sponsored"orrel="ugc"is still a link. It passes less or no ranking value, but it is not an unlinked mention. Asking the owner to "add a link" is the wrong request. Your request would be to change the attribute, which is a harder sell. - Redirecting or tracked links. A link to
bit.ly/xyzor a shortener may resolve to your site. A plain host check misses it. - Image links. An image wrapped in an anchor that points to you has no visible link text, but the link exists. The
alttext may be the only place the brand appears. - Links in other parts of the page. Footers, sidebars and author boxes may hold the link while the article body does not.
Cases that look like mentions but are not worth pursuing
- Ambiguous names. If your brand is "Apex" or "Orbit", most matches will refer to something else. Look for context words such as your product category or founder name.
- Negative or neutral context. A page that criticizes you will not link after a friendly request.
- Dead or blocked pages. If the page returns an error, or a
noindexrobots meta tag keeps it out of search, a new link would have little value. - Scraped and syndicated copies. Auto-generated pages that copy your press release are not editorial. Skip them.
- Pages behind JavaScript. Some links are injected after load. A plain HTTP fetch will not see them. If your check says "unlinked" on a modern single-page site, confirm in a browser or a rendering tool first.
A verification workflow
The flow below puts the cheap checks first, so expensive manual review happens only for survivors.
Automating the anchor check
The function below returns True only when the page text names the brand and no anchor points to the brand's domain.
import re
from urllib.parse import urlparse
from bs4 import BeautifulSoup
def is_unlinked_mention(html, brand, domain):
soup = BeautifulSoup(html, "html.parser")
domain = domain.lower()
for a in soup.find_all("a", href=True):
host = urlparse(a["href"]).netloc.lower()
if host == domain or host.endswith("." + domain):
return False
text = soup.get_text(" ")
pattern = r"\b" + re.escape(brand) + r"\b"
return re.search(pattern, text, re.IGNORECASE) is not None
html = "<p>We tested Acme Analytics last month.</p>"
print(is_unlinked_mention(html, "Acme Analytics", "acme-analytics.com"))Three details matter here. The \b word boundaries stop "Acme" from matching inside "Acmeville". re.escape makes brand names with dots or plus signs safe. The suffix test "." + domain stops notacme-analytics.com from counting as your domain.
Handling link attributes and hidden text
The first version treats every link the same and reads text inside script and style tags. A more useful version separates three outcomes and strips non-visible text.
import re
from urllib.parse import urlparse
from bs4 import BeautifulSoup
ATTRIBUTES = {"nofollow", "sponsored", "ugc"}
def classify_mention(html, brand, domain):
soup = BeautifulSoup(html, "html.parser")
for tag in soup(["script", "style", "noscript"]):
tag.decompose()
domain = domain.lower()
attributed = False
for a in soup.find_all("a", href=True):
host = (urlparse(a["href"].strip()).hostname or "").lower()
if host == domain or host.endswith("." + domain):
rel = {r.lower() for r in (a.get("rel") or [])}
if rel & ATTRIBUTES:
attributed = True
else:
return "linked"
if attributed:
return "linked_with_attribute"
pattern = r"\b" + re.escape(brand) + r"\b"
if re.search(pattern, soup.get_text(" "), re.IGNORECASE):
return "unlinked"
return "no_mention"
page = '<p>Try <a href="https://www.acme-analytics.com/" rel="nofollow">Acme Analytics</a>.</p>'
print(classify_mention(page, "Acme Analytics", "acme-analytics.com"))This prints linked_with_attribute. The function returns "linked" as soon as it finds one followed link, because a nofollow link elsewhere on the page does not change that. BeautifulSoup returns rel as a list, which is why the code builds a set from it.
Manual spot checks
For the survivors, open the page and search it with the browser's find tool (Ctrl+F or Cmd+F) for your brand and for your domain name. Then view the source and look for your domain in any href. Check three places that scripts often miss: the author bio, the footer, and image anchors.
A search query can confirm a link from the other direction. Searching link: no longer works in Google, so use your backlink tool's referring-pages export instead. If the candidate URL appears there as a live link to you, drop it. Match on the exact page URL, because the tool may list the domain as a referrer through a different page.
Recording the result
Keep the verification result next to each URL so the next step has clean data.
| Field | Example | Why it matters |
|---|---|---|
| URL | `https://example.org/review` | Identifies the page |
| Status | `unlinked` | Drives the next action |
| Mention context | "tested Acme Analytics" | Lets you reference it in outreach |
| Checked on | 2026-11-27 | Pages change, so old checks go stale |
| Checked by | script or manual | Shows how much to trust it |
Re-check a page just before you send the email. A mention that was unlinked two weeks ago may have been fixed by someone else, and writing to an owner who already linked to you looks careless.
Common errors
- Checking only the home page URL in
hrefvalues and missing deep links. Compare hosts, not full URLs. - Matching the brand case-sensitively and losing "ACME Analytics" or "acme analytics".
- Treating a
nofollowlink as unlinked and sending a request that makes no sense to the owner. - Counting a mention in a comment or forum signature as editorial. Those are often
ugc, and they are poor prospects anyway. - Running the check on a cached copy of the page from search results, not the live page.
Exercise
A page contains <a href="https://blog.acme-analytics.com/guide" rel="ugc">Acme Analytics guide</a> in a reader comment, and nowhere else mentions the brand. Using the classify_mention function with domain acme-analytics.com, what does it return, and should you send an "add a link" email?
Show answer
It returns linked_with_attribute. The host blog.acme-analytics.com ends with .acme-analytics.com, so the link is detected, and ugc is in the attribute set. You should not send the email. The page already links to you, the link sits in a user comment where the owner has not endorsed it, and the owner cannot reasonably be asked to change a comment attribute. Log the page as linked and move on.
Exercise
Name two reasons a script might report a page as "unlinked" when a link to your site actually exists, and one way to catch each.
Show answer
First, the link may be added by JavaScript after the page loads, so it is missing from the fetched HTML. Catch it by opening the page in a browser or with a rendering tool. Second, the link may use a shortener or redirect, such as bit.ly/abc, that resolves to your site. Catch it by following the redirect with requests.head(url, allow_redirects=True) and checking the final host, or by checking your backlink tool's referring-pages export.