Affiliate Disclosure Snippet Injector
Paste a blog post, a YouTube description or a social caption, and this tool finds your affiliate links and puts a disclosure right beside each one. Or switch to audit mode and it tells you which links are missing a disclosure without touching your text. It reads HTML, Markdown and plain text, and everything runs in your browser, so your drafts are never uploaded anywhere.
Why the label goes next to the link
Where a disclosure sits matters as much as what it says. The FTC’s guidance is that a disclosure should be as close as possible to the recommendation it relates to, and a single note at the bottom of a page or post is not enough on its own. The FTC has also said that “affiliate link” as a bare label is not an adequate disclosure, while plain wording such as “paid link” placed next to the link can work if people can see it. In the UK, advertising rulings have found that many consumers don’t understand the word “affiliate”, and the ASA expects a clear label such as “ad” or “#ad”, visible upfront.
Amazon adds its own rules on top. Its Associates Operating Agreement requires a specific sentence on your site (“As an Amazon Associate I earn from qualifying purchases.”), and its disclosure guidance gives examples such as “(paid link)”, “#ad” and “#CommissionsEarned” for wording near individual links.
Rules differ by country and change over time, so treat the presets here as a starting point rather than legal advice. What the tool takes off your hands is the tedious, error-prone part: making sure every link in a 40-item roundup actually has its label.
What the injector does
- Finds the links for you. It recognises Amazon links that carry a
tag=, Amazon short links, tracking links from networks such as Awin, CJ, Rakuten, Impact, ShareASale, Partnerize and eBay Partner Network, and links with parameters likeclickreforutm_medium=affiliate. Detection is a best guess from the link address, so every unique link appears in a review list where you can tick a link it missed or untick one it got wrong. - Handles your own cloaked links. Add a custom rule such as
/go/ormysite.com/recommends/*(a*is a wildcard, and lines starting withre:are treated as regular expressions). There is also an “all external links” mode for content where everything you link out to is monetised. - Puts the label where you choose. After the link (the default) or before it, on every link or only the first in each paragraph. It warns you that the FTC prefers a disclosure close to each link if you pick the paragraph option.
- Checks your wording. A label such as “affiliate link”, “commissionable link”, “buy now” or “collab” triggers a plain-English warning explaining why regulators don’t treat it as clear.
- Adds the up-front line and the Amazon statement once. The opening disclosure and the Amazon Associates sentence are inserted a single time, only when your content contains selected affiliate links, and only if they aren’t already there. In a Markdown file with front matter they go below it. In a full HTML page they go just inside
<body>. - Sets
rel="sponsored". For HTML links it addssponsored(orsponsored nofollow) and merges it into an existingrelattribute instead of overwriting it. Markdown can’t carryrel, so there is an opt-in to convert selected inline Markdown links to HTML anchors. - Audits without editing. Audit mode produces a report with line numbers, which links are missing a disclosure, whether the Amazon statement and up-front line are present, and how many HTML affiliate links carry
rel="sponsored". You can copy it or download it as a text file.
How to use it
- Paste your content, or drop in a
.txt,.mdor.htmlfile. - Pick a preset (US blog, UK, social caption or video description). It fills in a label and an up-front line, and you can edit both.
- Check the link list and adjust the ticks.
- Read the result. “Show changes” highlights every insertion so you can review exactly what was added.
- Copy the result or download it as a
.txt,.mdor.htmlfile.
Choosing the wording
| Where it’s going | Suggested label | Suggested up-front line |
|---|---|---|
| US blog or website | (paid link) | “Disclosure: I get commissions for purchases made through links in this post.” |
| UK content | (ad) | “Ad: this post contains affiliate links — I may earn a commission if you buy through them.” |
| Social caption | #ad | “#ad — affiliate links below, I earn a commission if you buy.” |
| Video description | (paid link) | A written line plus a spoken script to say in the video too |
For video, the FTC advises disclosing in the video itself as well as in the description near the links, so the video preset also generates a sentence you can read out.
It won’t double-label or wreck your formatting
Running the tool twice on the same text changes nothing the second time. It recognises disclosures that are already next to a link, including “(ad)”, “#ad”, “(paid link)” and “[affiliate link]”, and it doesn’t mistake an unrelated phrase such as “(ad hoc)” for one. When two links sit side by side, a label between them is credited to the link it belongs to, so neither link is skipped.
Content that shouldn’t be touched is left alone: fenced code blocks, inline code, <pre>, <code>, <script>, <style>, HTML comments, image sources and reference-style definitions. Line endings are preserved, so Windows-style files stay Windows-style.
Captions, descriptions and character limits
Captions have hard length limits, and a label added to each link eats into them. The output shows a live character count with an editable limit, and if you’re checking a caption against many platforms at once, the Word / character counter shows live bars against real limits for X, Instagram, YouTube and more.
If you write in Markdown, check how the finished result renders in the Markdown editor & viewer before you publish, especially if you chose the HTML span or Markdown italics label format.
Auditing content you already published
To check an old post, paste it and switch to “Audit only”. If you’d like a plain list of every URL in the text first, for example to review each link’s destination, the Bulk Email & Link Extractor pulls the addresses out of a messy block in one go.
What it can’t do
- It doesn’t visit any link, so it can’t see where a redirect ends up. A cloaked link is found through a custom rule, not by following it.
- Bare links in plain text need
http://,https://orwww.at the start to be recognised. - Indented (four-space) Markdown code blocks aren’t treated as code. Fenced blocks and inline code are.
- If your affiliate links also need SubIDs or Amazon Tracking IDs added to the links themselves, that’s a separate job, handled by the Affiliate Link Tracker Builder.
Questions
Is this legal advice?
No. It follows publicly available guidance from the FTC, the UK ASA and Amazon, but rules vary by country and are updated. Check the current guidance for the places you publish.
Does it work with WordPress?
Yes. Paste the HTML from the Code editor (or from a Custom HTML block), run it, and paste the result back. Choose “HTML span” as the label format if you want to style the label with the affiliate-disclosure class.
Will it label links that aren’t affiliate links?
Only if you tick them. Unflagged links stay unticked in the list unless you choose “all external links” mode.
Is my text stored anywhere?
No. Nothing you paste is uploaded or saved. Only your settings (label, preset, options) are remembered in this browser.