Sub topic 3
Link Attributes and Search Engine Guidelines
This chapter assumes you know what a hyperlink is, that you can read basic HTML, and that you have read the previous chapter on backlinks, linked mentions, and unlinked mentions. Here you learn what a link attribute is, how the three main values differ, how search engines treat them, and what that means for your digital PR work.
What a link attribute does
A link attribute is a value in the rel attribute of an HTML <a> tag. It tells search engines how the publisher relates to the page being linked to. A link with no rel value is a normal link. Search engines treat it as an editorial vote: the publisher chose to point readers to your page.
The three values you will meet most often are:
| Value | Meaning | Typical use |
|---|---|---|
| `nofollow` | The publisher does not vouch for the target, or does not want to pass endorsement. | General untrusted links, or links a publisher chooses not to endorse. |
| `sponsored` | The link exists because of an ad, sponsorship, or other paid arrangement. | Paid placements, advertorials, affiliate links. |
| `ugc` | The link sits in user-generated content. | Forum posts, blog comments, reviews. |
Here is the same link written four ways:
<a href="https://example.com/report">Example Co. study</a>
<a href="https://example.com/report" rel="nofollow">Example Co. study</a>
<a href="https://example.com/report" rel="sponsored">Example Co. study</a>
<a href="https://example.com/report" rel="ugc">Example Co. study</a>The first line is an editorial link. The other three are qualified links. Values can be combined, separated by a space, for example rel="nofollow ugc".
How search engines treat these values
Google introduced sponsored and ugc in 2019. At the same time it changed how it handles all three values. Before that change, nofollow was treated as a strict instruction to ignore the link for ranking. Since then, Google treats nofollow, sponsored, and ugc as hints. It may use them to decide which links to count, and it may also use them for crawling and indexing.
Two practical points follow:
- A qualified link is not worthless. It can still send referral visitors, put your brand in front of readers, and help search engines discover your page.
- You cannot assume a qualified link has zero ranking effect, and you cannot assume it has any. Treat the effect as uncertain and judge the link by its other value.
Other search engines publish their own guidance and may differ. Check the current webmaster documentation for any engine that matters to your market.
Why many news sites use nofollow
Digital PR often earns links on large news sites. Many of these publishers apply nofollow or sponsored to outbound links as a matter of policy, or they apply it to some sections and not others. Reasons include:
- They want to avoid any suggestion that links can be bought.
- Their content management system adds attributes automatically.
- They have commercial relationships that make blanket qualification safer.
As a result, a campaign can earn strong coverage and still produce few followed links. This is normal. It is also why you set goals beyond link counts, which a later chapter covers.
Checking the attribute on a live page
You can view the source of a coverage page and search for your domain, but a short script is faster when you have many pages. The function below fetches a page and lists every link to your domain with its rel values.
import requests
from urllib.parse import urlparse
from bs4 import BeautifulSoup
def find_links_to(page_url, domain):
html = requests.get(page_url, timeout=10).text
soup = BeautifulSoup(html, "html.parser")
results = []
for a in soup.find_all("a", href=True):
host = urlparse(a["href"]).netloc.lower()
if host == domain or host.endswith("." + domain):
results.append({"href": a["href"], "rel": a.get("rel", [])})
return results
print(find_links_to("https://news.example.org/article", "example.com"))Run it with pip install requests beautifulsoup4 installed. BeautifulSoup returns rel as a list, so rel="nofollow ugc" appears as ["nofollow", "ugc"]. An empty list means no rel attribute, which is an editorial link.
Be aware of some limits:
- The script reads the HTML the server sends. If the publisher inserts links with JavaScript, they will not appear.
- Relative links have no host, so they will not match your domain. That is correct here, since a link to your site is always absolute.
- Some sites block automated requests. Do not work around a block. Check the page by hand instead.
- The script does not show whether the page is indexed or whether the link counts for ranking. It shows only what the markup says.
What search engine guidelines prohibit
Google's spam policies include a section on link spam. The core idea is that links meant to manipulate ranking, instead of to help readers, violate the guidelines. Examples that matter for PR include:
- Buying or selling links that pass ranking signals. Paid links must carry
sponsoredornofollow. - Excessive link exchanges, such as "link to me and I'll link to you" arrangements made at scale.
- Large-scale article marketing or guest posting campaigns where the main goal is links.
- Using automated programs to create links.
- Requiring a link as part of terms of service or a contract without qualifying it.
- Keyword-stuffed anchor text in widely distributed content, such as articles or press releases.
Consequences range from Google ignoring the links to a manual action against the site, which can reduce or remove its visibility until the problem is fixed. Penalties can fall on the site that buys links and on the site that sells them.
Where the line falls in digital PR
Digital PR is allowed because the link is earned. A journalist reads your research, decides it is useful, and cites it. Several situations are less clear. The table gives a working view.
| Situation | Usual reading |
|---|---|
| A journalist cites your survey and links to it with no `rel` value. | Editorial link. Fine. |
| A publisher links to you and uses `nofollow` as its sitewide policy. | Fine. Accept it. |
| You ask a journalist who already cited you to add a link to the source. | Fine, if the request is polite and the link helps readers. |
| You pay a site for a post with a followed link. | Violates guidelines unless the link is qualified. |
| You send free products and the review links to you without disclosure. | Risky. Free products should be disclosed, and the link qualified. |
| You offer to link back to a publisher in return for coverage. | Link exchange. Avoid. |
Asking a publisher to remove nofollow is a common request, and you should avoid it. A publisher's attribute policy is its own decision. Pushing against it damages the relationship and gains little.
A decision flow for a new link
Use this sequence when coverage appears and you want to assess the link.
Common errors
- Treating nofollow as failure. A qualified link on a respected publication still brings readers and credibility. Judge coverage on all its outcomes.
- Chasing followed links by any means. This leads to paid or exchanged links, which is the exact behavior the guidelines target.
- Misreading the markup. A
relvalue can sit on a different tag, or the attribute can be added by script. Check the live page, and check again later, because publishers change templates. - Over-optimizing anchor text. If you supply copy to a publisher, do not insist on keyword-heavy anchors. Natural anchors, such as your brand name or the report title, look more editorial and are safer.
- Ignoring syndication. When a story is republished on several sites, the original may link to you while the copies do not, or the reverse. Check each page separately.
- Assuming rules are permanent. Guidelines and the way engines handle attributes change. Read the current documentation before you set a policy for a team.
Practical rules for your campaigns
- Earn links by offering something worth citing, and never by payment or exchange.
- Accept the publisher's attribute policy.
- Record the
relvalue for every link you find. - Qualify any link that results from a commercial relationship.
- Report qualified and editorial links separately, so stakeholders see the real mix.
Exercise
A news site publishes your survey and links to it with rel="nofollow" on all outbound links, as site policy. Your manager asks you to email the editor and request that the attribute be removed. What do you advise, and what value does the coverage still have?
Show answer
Advise against the request. Attribute policy belongs to the publisher, and pushing on it harms the relationship and gains little, since Google treats nofollow as a hint and the link may still be useful. The coverage still sends referral visitors, builds brand visibility, and helps search engines discover the report. Log the link with its rel value and report it as a qualified link.
Exercise
You run the Python script on a coverage page and it returns an empty list, but you can see a link to your site when you open the page in a browser. Give two possible reasons.
Show answer
The link may be inserted by JavaScript after the page loads, so it is missing from the HTML the script fetched. The page may also have served different content to the script, for example a blocked or cookie-wall version. Check the live page by hand, and the rendered source in browser developer tools.