Short answer
Earn links by publishing something other sites choose to cite, and mark paid or user-written links so they do not pass ranking credit. Google treats bought links, excessive swaps, hidden widget links, and large-scale guest posts aimed at rankings as link spam. A paid link needs rel sponsored or rel nofollow. Comment links should use rel ugc. Links are how Google finds most new pages.
Last verified against the sources listed below.
Key takeaways
- Google finds most new pages through links, and anchor text describes the destination.
- Link spam is links created mainly to manipulate rankings, including bought and swapped links.
- Paid links are allowed when qualified with rel sponsored or rel nofollow. Sponsored is preferred.
- Comment and forum links should use rel ugc.
- Use rel nofollow when you do not want your site associated with the target.
- For a URL on your own site that should not be crawled, Google points to robots.txt, not nofollow.
How to do link building, if you follow Google, is publishing pages worth citing and refusing links whose purpose is to manipulate rankings. Google’s spam policies define link spam as creating links to or from a site primarily to manipulate search rankings.
A normal link is still useful. The SEO starter guide says the vast majority of new pages Google finds every day are found through links. The work below is how to earn that kind of link, and how to mark the links you place yourself.
What do you need before a link is worth earning?
You need a page a stranger can cite without being paid. The starter guide treats a link as a way to connect people and search to another part of your site, or to a page on another site that supports what you wrote. Anchor text, the visible words of the link, should say what the destination contains.
You also need to know which links you must qualify. Google’s qualify-outbound-links page gives three values: sponsored for ads and paid placements, ugc for comments and forum posts, and nofollow when you do not want the association.
MDN describes nofollow as a sign that the author does not endorse the referenced document.
The link itself is an a element. The HTML standard calls href the address of the hyperlink, and that address is a URL the URL standard defines. The rel value is what qualifies the relationship, and the element alone is not a ranking exception.
How do you earn a link Google can credit?
Do these in order. Each step is one action. None of them is a way to buy a link or to hide one.
- Read the link-spam examples and write down the patterns you will not use.
- Publish a page that states something specific: a definition, a worked comparison, or a table from sources you name.
- Link outward to the sources you trust, with anchor text that describes those sources.
- Add
rel="sponsored"to any link that is an ad, a sponsorship, or a placement you were paid for. - Add
rel="ugc"to links in comments and forum posts, automatically if the CMS can do it. - Add
rel="nofollow"when sponsored and ugc do not fit and you still do not want the association. - Ask another site to cite you only after the page is useful to that site’s readers.
- Stop if the reason for the request is a ranking credit rather than the reader’s benefit.
Google’s 2017 reminder says the best advice on link building is to improve the site’s content, and that links follow from that. Guest posts that inform another site’s audience are not discouraged. Posts whose main intent is large-scale links are treated as a link scheme. Write for the other audience, or do not send the piece.
A preview image does not earn the citation. An Open Graph image resizer only sets the picture that appears when the URL is shared. The page still has to deserve the link.
How does link building help SEO?
How does link building help SEO, in the starter guide’s terms, is discovery and context. Links are how Google finds most new pages, and a link can point to a source that supports what you wrote. Descriptive anchor text tells both people and Google what is on the other side before they open it.
That help assumes the link is a real citation. The spam policy says links created primarily to manipulate rankings can lead to a lower ranking or to the site not appearing. Buying a link, swapping links at volume, or stuffing a keyword anchor into a guest post does not become “help” because the link exists. The qualification rules exist so advertising can stay on the page without pretending to be an endorsement.
Off-page SEO is the name for work that happens on other sites.
How search engines work is why a crawlable link matters for discovery. Neither idea requires you to hide a link or to pay for one that passes credit.
What should you change when a link looks like spam?
Match the symptom to the policy, then change the markup or remove the pattern. Do not add a cloaking trick. The table is the fix list from the pages above.
| What you see | What Google calls it | What to do |
|---|---|---|
| Money, goods, or a free product in exchange for a link | Link spam, unless qualified | Add rel=“sponsored”, or rel=“nofollow” |
| A comment or forum post with a link | User-generated content | Add rel=“ugc” |
| You do not trust the target | Association you can decline | Add rel=“nofollow” |
| A URL on your own site that should not be crawled | Not a nofollow case | Use a robots.txt disallow rule |
| The same guest post on many sites, with keyword anchors | Large-scale link scheme | Do not publish it for ranking |
| A widget or footer link repeated across many sites | Link spam in the policy examples | Remove the distributed links |
| Two sites that only exist to link to each other | Excessive link exchange | Stop the trade |
Links marked with those rel values will generally not be followed. Google notes that the target can still be discovered by a sitemap or by a link from somewhere else. Qualifying a link does not erase the URL from the web. It tells Google how your site relates to it.
Multiple values can sit in one attribute, separated by spaces or commas, when more than one relationship is true. A sponsored comment is a case the qualify page allows you to mark with more than one value. Use the values that match the relationship you actually have.
Frequently asked questions
Can I pay for a link if I label it?
Google's spam policy says buying and selling links is a normal part of the web for advertising and sponsorship. It is not a violation when the link is qualified with rel nofollow or rel sponsored. The qualify-outbound-links page prefers rel sponsored for ads and paid placements, and it says nofollow is still acceptable. An unlabeled paid link, or a paid article with an optimized anchor that passes credit, is listed as link spam. The label is the difference, not a secret tag.
What should a comment link use?
Use rel ugc. Google recommends that value for user-generated content such as comments and forum posts. The starter guide says the same job can be done with nofollow or a similar annotation, added automatically by the CMS, because you did not write those links and you do not want the site associated with every target. You can remove the annotation later for people who have a long record of good contributions. That removal is a choice, not the default.
Do guest posts count as link building?
Google's 2017 note says contributor, guest, partner, and syndicated posts are fine when they inform readers or reach an audience. They violate the link-scheme guidance when the main intent is to build links at large scale. Warning signs on that post include keyword-rich links back to the author's site, the same article on many sites, writers who do not know the topic, and copied content. Write the piece for the other site's readers. If the ranking link is the point, do not publish it.
How does a link help discovery?
The starter guide says the vast majority of new pages Google finds every day are found through links, so a link is a discovery path as well as a citation. Anchor text tells users and Google something about the destination before they open it. That is the help. It is not a quota. A link from a page you control to a page you also control is an internal link, and blocking crawl of your own URL is a robots.txt job, not a nofollow job.
What if I do not trust the page I am linking to?
Link only if you still want the reader to go there, and add rel nofollow or a similar annotation. The starter guide says that keeps search from associating your site with a site you do not trust. The qualify page says nofollow is the value to use when sponsored and ugc do not fit, and you would rather Google not associate your site with the target or crawl that target from your site. The linked page can still be found by other paths.
Sources
- Spam policies for Google web search · Google Search Central, 2026
- SEO starter guide · Google Search Central, 2026
- Qualify outbound links · Google Search Central, 2026
- rel attribute · MDN, 2026
- The a element · WHATWG, 2026
- URL Standard · WHATWG, 2026