Developer and Text Tools

Google Disavow Files: When You Need One and How to Build It

When a disavow file helps and when it hurts, Google's format and limits, and how to build, merge and check a disavow.txt before uploading it.

Saizul Amin
Saizul Amin5 Nov 2026 · 4 min read
Google Disavow Files: When You Need One and How to Build It

Google Disavow Files: When You Need One and How to Build It

The disavow tool in Google Search Console lets you ask Google to ignore certain links to your site. It is powerful, easy to misuse, and not needed by most websites. The Google Disavow File Generator helps you build a correctly formatted file, with a reason beside every line, if you do need one.

Do you need a disavow file?

Google says its systems already ignore most spammy links, so most sites never need to disavow anything. The clear cases are:

  • You have a manual action for unnatural links in Search Console.
  • You or a previous agency bought links or joined link schemes, and you could not get them removed.
  • You see a large, obvious attack of spam links and want to be sure they are ignored.

If your rankings dropped and you are not sure why, a disavow file is rarely the answer. Look at content, technical issues and competition first.

The format

A disavow file is a plain text file, one entry per line:

  • domain:spammy-site.example disavows every link from that domain and its subdomains.
  • A full URL disavows only that single page.
  • A line starting with a hash sign is a comment, ignored by Google.

The file must be under 2 MB and under 100,000 lines. Each new upload replaces the previous file completely.

How the tool builds the file

  1. Paste the linking URLs from your backlink export.
  2. List domains you have already decided to disavow under Always disavow.
  3. List trusted domains under Never disavow. Nothing on this list can be included by any rule.
  4. Optionally flag suspicious TLDs such as .xyz, .top, .click and .tk, and spam words such as casino, payday and replica.
  5. Choose whole domains or single URLs.
  6. Paste your old disavow file into the merge box so its entries are kept.

The output starts with a date line and a reminder, then gives each entry a comment saying why it is there: "listed by you", "risky TLD .xyz", "spam word" or "from your existing file". A format check marks any line that is neither a valid domain: line nor a full web address.

A worked example

The default sample has six linking URLs. Two are from example.org and example.net, which are on the allow-list, so they are skipped. Four are flagged by the TLD rule: cheap-links.xyz, best-casino-bonus.top, seo-links-directory.click and spammy.tk. Add linkfarm-network.com from the Always list and the file holds five domain: lines, each with a comment. The format check reads OK.

Now imagine one of the .xyz domains is actually a genuine local food blog that reviewed your bakery. The TLD rule would still flag it. That is why the comments matter: you read each reason, decide, and add the good site to the allow-list.

Domain or URL?

For spam sites, disavow the whole domain. They often have many pages linking to you, and new ones appear. Use single URLs only when one page on an otherwise good site is the problem, such as a hacked comment section.

Uploading

In Search Console, open the disavow links tool, choose the property, and upload disavow.txt. Remember that the new file replaces the old one. If you leave out an entry from last year's file, it is no longer disavowed. Keep every version with a date so you can roll back.

Google processes the file over time as it recrawls the linking pages, so do not expect changes in days. If you had a manual action, submit a reconsideration request explaining what you removed and what you disavowed.

Common mistakes

Disavowing good links. A tool score that says "toxic" is not proof. Disavowing real editorial links can lower your rankings.

Forgetting the old file. Uploading a fresh file without merging silently drops your previous entries.

Wrong format. "spammy.tk" without domain: or without http is invalid. The format check catches it.

Disavowing instead of removing. Where you can, ask the site owner to remove the link first. Disavow is for links you cannot get removed.

Treating it as routine maintenance. Uploading a new file every month based on automatic scores is more likely to hurt than help.

Use it with care

A disavow file is a statement to Google that you do not want certain links counted. Build it slowly, give every line a reason, keep backups, and upload only when you are confident each entry belongs there.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages