Backlinks

    How to Create a Google Disavow File (Step-by-Step)

    A disavow file tells Google to ignore specific backlinks. Here is how to build one safely, and when you actually need one.

    3 min readReviewed Jul 9, 2026

    To create a Google disavow file, export your backlinks, filter to genuinely spammy or manipulated links, format them as a plain-text file with one domain or URL per line (domains prefixed with domain:), and upload the file to Google Search Console's Disavow Tool. Only disavow when you have evidence of an unnatural link pattern — the tool is not a routine cleanup.

    What a disavow file looks like

    Before anything else, here is the whole format. A disavow file is a plain-text .txt file, UTF-8, one entry per line, under 2 MB and 100,000 lines:

    # LemRank disavow — example.com — submitted 2026-09-10
    # Domains from the July link-farm wave
    domain:spam-site-example.com
    domain:another-spam.net
    domain:casino-links.ru
    
    # Single pages only, where the rest of the site is legitimate
    https://mostly-fine-site.com/paid-links-page
    

    Rules Google enforces on the file:

    • domain:example.com disavows the whole domain and every subdomain. No http://, no trailing slash.
    • A bare URL disavows that one page, exactly as crawled.
    • Lines starting with # are comments — use them to date the file and note why.
    • One entry per line. No commas, no quotes, no CSV, no Google Doc.
    • Each upload replaces the previous file, so the file you upload must contain every domain you still want ignored.

    When to actually use disavow

    Google has said repeatedly: for most sites, the disavow tool is unnecessary. Their algorithms already ignore obviously spammy links. You should build a disavow file when at least one of these applies:

    • You have a manual action in Search Console citing unnatural links.
    • You paid for links in the past (guest post networks, PBNs) and want to preempt a manual action.
    • You see a sudden influx of spammy links — a negative SEO attack or a scraper wave.
    • You're auditing after buying a domain with a suspicious link history.

    If none of the above apply, disavowing "just to be safe" can hurt — you may accidentally disavow real editorial links that are helping you.

    Not every low-authority link is toxic. The pattern signals matter more than any single link. Watch for:

    • Sites with no visible editorial standard — auto-generated content, no author bylines.
    • Link-farm signatures — 100+ outbound links per page, same anchor text repeated.
    • Off-topic linking sites — a gambling directory linking to your SaaS product.
    • Foreign-language spam at scale — Russian or Chinese casino/pill sites are the classic case.
    • Copied content with your link injected.
    • Exact-match commercial anchor text at unusual volume ("buy cheap X" repeatedly).

    Step-by-step: build a disavow file

    1. Export all backlinks. Use Search Console (Top linking sites) plus a third-party crawler for depth.
    2. Deduplicate to referring domains. You almost always want to disavow at the domain level, not per-URL, because one spam site usually links from many URLs.
    3. Score each referring domain. Manual review remains gold-standard for the top 500 — after that, use a toxicity score to prioritise.
    4. Compile the list. Plain text file, one entry per line:
      # Disavow submitted 2026-07-09
      domain:spam-site-example.com
      domain:another-spam.net
      https://specific-page.com/spammy-url
      
      Lines starting with # are comments and are ignored by Google.
    5. Save as UTF-8, .txt. Not .csv, not .doc.
    6. Upload to the Disavow Tool in Search Console. Google confirms receipt within minutes.
    7. Wait 4–8 weeks for effects to compound as Google re-crawls the disavowed sources.

    How LemRank helps

    Our Spam Backlink Monitor scores every referring domain on 8 signals (link farm density, TLD reputation, on-page spam markers, redirect chains, subnet co-location, anchor over-optimisation, page similarity clusters, and outbound link ratio). The Disavow Assistant lets you:

    • Filter to high-confidence toxic only to build a conservative file.
    • Export a valid disavow.txt in one click, correctly domain-prefixed.
    • Track every submission so you never re-disavow a domain you've already listed.
    • Weekly watcher flags new suspicious inbound links so you can update the file incrementally.

    There is no public Google API for automating disavow submission — you upload the file yourself. Any tool claiming to fully automate submission is misusing the platform.

    Common mistakes

    • Disavowing too aggressively. Removing real editorial links can crater rankings.
    • Uploading a new file that doesn't include prior entries. Each upload replaces the previous file. Always download the current list first and append.
    • Disavowing per URL when you should disavow the domain. If a domain is spammy, one URL isn't the problem.
    • Expecting immediate impact. Google recrawls disavowed sources on their own schedule.

    What this does not do

    • It doesn't remove links from the web — it tells Google to ignore them for ranking purposes.
    • It doesn't lift a manual action automatically — you may still need a reconsideration request.
    • It doesn't help with links that aren't hurting you — disavowing helpful links is net-negative.

    Frequently asked questions

    Does the Google disavow tool still work in 2026?

    Yes. Google confirmed as recently as 2025 that disavow remains the correct tool for signalling unnatural or paid links you cannot remove. For most sites without a manual action or a known bad link history, it is unnecessary.

    Should I disavow every low-quality backlink?

    No. Google's algorithms already discount obvious spam. Reserve disavow for patterns that look manipulated (paid, negative SEO, network) or for post-manual-action cleanup.

    How long until a disavow file takes effect?

    Typically 4–8 weeks as Google re-crawls the disavowed sources. Effects compound; you rarely see a single-day change.

    What is the difference between disavowing a URL and a domain?

    A URL disavows one page. A domain disavows every current and future URL on that domain. Domain-level is almost always the right choice for spam networks.

    Can I automate submitting a disavow file to Google?

    No — there is no public API for the Disavow Tool. Any tool claiming to auto-submit is misusing the platform. LemRank builds a valid file and tracks submissions, but the final upload is manual.

    How do I make a disavow file?

    Open a plain-text editor, write one entry per line — `domain:example.com` for a whole site, the full URL for a single page — save as UTF-8 `.txt`, and upload it in Search Console's Disavow Tool. Nothing else is required; there is no template to download.

    What format does a disavow file have to be in?

    Plain text (`.txt`), UTF-8 encoded, maximum 2 MB and 100,000 lines. Word documents, spreadsheets and CSV exports are rejected.

    Where do I upload the disavow file?

    Google's Disavow Links tool, reached directly rather than from the Search Console menu. Select the property, upload the file, and Google confirms receipt within minutes.

    How do I edit or remove a disavow file later?

    Download the current file from the tool, edit it, and upload the corrected version — the new upload replaces the old one entirely. Uploading an empty file cancels the disavow completely.

    Was this page helpful?

    Try LemRank free

    14-day Pro trial. No credit card required.

    Start free trial
    Ready to try it?

    Do this in LemRank — track google disavow file automatically

    Skip the manual work. LemRank runs the tracking, alerts you on movement, and explains every change with AI.

    14-day free Pro trial · No credit card required · Cancel anytime