This disavow file template gives you the exact .txt format Google requires. It covers domain-level vs. URL-level entries, when you should (and should not) use the disavow tool, how to submit the file through Google Search Console, and the common formatting mistakes that cause rejections.
Last updated: March 2026 · Reading time: 8 min
A disavow file is a plain text (.txt) file uploaded to Google Search Console that instructs Google to ignore specific backlinks when assessing your site’s ranking signals. It does not remove the links; it tells Google’s algorithms to discount them.Here’s a complete example disavow file with all three entry types: comments, URL-level, and domain-level.
# Disavow file for example.com
# Generated: 2026-03-15
# Last audit: Q1 2026
# Contact: [email protected]
# Section 1: Individual URLs to disavow
# These are specific pages on otherwise legitimate domains
https://legitimatesite.com/spammy-guest-post/
https://anothersite.com/link-farm-page.html
# Section 2: Entire domains to disavow
# These domains are entirely spam/PBN/irrelevant
domain:spamlinks123.com
domain:cheapbacklinks.net
domain:foreignspamsite.ru
domain:pbn-network-42.com
# Section 3: Domains from negative SEO attack (Jan 2026)
# Identified via Ahrefs alert on 2026-01-15
domain:attack-domain-1.xyz
domain:attack-domain-2.xyz
domain:attack-domain-3.xyz
domain:spamsite.com (no space after the colon). This covers all pages on that domain and all subdomains.| Requirement | Specification | Common Mistake |
|---|---|---|
| File format | .txt (plain text) | Uploading .csv, .xlsx, or .doc files |
| Encoding | UTF-8 or 7-bit ASCII | Saving as UTF-16 or other encodings |
| Maximum size | 2 MB | Exceeding limit with overly detailed comments |
| Maximum lines | 100,000 (including blank lines and comments) | Not counting comment lines toward the limit |
| URL format | Full URL with protocol (https://) | Entering partial URLs like “spamsite.com/page” |
| Domain format | domain:example.com | Adding “www.” or “https://” before domain: |
| One file per property | Uploading replaces the previous file | Assuming uploads are additive (they’re not) |
https://search.google.com/search-console/disavow-links. You must be logged into the Google account that owns or has full access to the Search Console property.http:// and https:// versions, select the one that matches your canonical domain. For domain properties, this covers all variations automatically.| Mistake | What Goes Wrong | How to Fix It |
|---|---|---|
| Wrong file format (.csv, .xlsx) | Google rejects the upload entirely | Save as .txt, UTF-8 encoding |
| Missing protocol in URLs | Google can’t match the URL to its index | Always include https:// or http:// |
| Adding https:// before domain: | Google treats it as a comment or ignores it | Write domain:example.com (no protocol) |
| Assuming uploads are additive | Previous disavow entries are lost | Maintain one cumulative file, always |
| Disavowing your own domain | Removes internal link signals | Double-check every entry before upload |
| Over-disavowing (500+ domains) | Removes potentially helpful links | Manual review of every entry |
| No comments or documentation | Can’t remember why entries were added | Comment every section with date and reason |
domain:.xyz would disavow all links from every .xyz domain (Search Engine Journal, 2026).
Mueller called this “a big hammer” and noted it probably shouldn’t be widely documented because of its aggressive nature. Use this only if you’re seeing massive spam from a specific TLD (common with .xyz, .top, and .click domains in negative SEO attacks).
Be aware: legitimate sites exist on every TLD. Disavowing an entire TLD is irreversible in practice (you’d need to identify and re-include every legitimate domain manually). Use this as a last resort against large-scale spam campaigns, not as a general cleanup tool.
“In 12 years of SEO work, I’ve submitted disavow files for fewer than 10 client sites. Every single one had a manual action or a documented spam attack. For the other 95% of sites, we focus on building good links, not worrying about bad ones. Google is better at ignoring spam than most SEOs give them credit for.” Hardik Shah, Founder of ScaleGrowth.Digital
# Disavow file for www.yoursite.com
# Created: 2026-03-15
# Reason: Manual action for unnatural links (GSC notification 2026-02-28)
# Prepared by: [Your Name]
# Audit tool: Ahrefs + Google Search Console export
# ==========================================
# SECTION 1: PBN/Link Farm Domains
# Identified via Ahrefs toxicity score 80+ and manual review
# ==========================================
domain:cheaplinks-network.com
domain:seo-linkbuilder-pro.net
domain:guestpost-farm.info
domain:backlinks-cheap-buy.com
# ==========================================
# SECTION 2: Foreign Language Spam
# Unrelated sites in languages we don't operate in
# Multiple pages with exact-match anchor text
# ==========================================
domain:spam-russian-site.ru
domain:chinaspamlinks.cn
domain:randomforeign.tk
# ==========================================
# SECTION 3: Specific URLs on otherwise OK domains
# These domains have good content but these specific
# pages are link directories or paid link pages
# ==========================================
https://legitimateblog.com/sponsored-links-page/
https://newssite.com/advertorial-section/paid-link.html
# ==========================================
# SECTION 4: Hacked sites linking to us
# These sites appear compromised with injected links
# Notified webmasters on 2026-03-01, no response
# ==========================================
domain:hacked-wordpress-site.com
domain:compromised-blog.org
# End of disavow file
# Total entries: 11 domains, 2 URLs
# Next review scheduled: 2026-06-15
The spreadsheet template you need before creating a disavow file. Audit first, disavow second. Get Template →
Use these for link removal requests before resorting to the disavow tool. Get Templates →
Include backlink cleanup as part of your SEO engagement proposal. Get Template →
A disavow file is a plain text (.txt) file uploaded to Google Search Console that tells Google to ignore specific backlinks when assessing your site. Each line contains either a URL or a domain: directive. Google processes the file over several weeks as it recrawls the listed pages. The file does not remove the links themselves; it tells Google not to count them as ranking signals.
Use the disavow tool in two scenarios only: (1) you have received a manual action for “unnatural links pointing to your site” in Google Search Console, or (2) you have strong evidence of a deliberate negative SEO attack with thousands of spammy links built to your site. Google’s John Mueller has stated that “the disavow tool is not something that you need to do on a regular basis. It’s not a part of normal site maintenance.” Most sites will never need it.
Google processes disavow files over several weeks as it recrawls the web. There is no fixed timeline. For sites with manual actions, Google recommends uploading the disavow file, then submitting a reconsideration request. The reconsideration review itself takes an additional 2-4 weeks on average. Full impact may not be visible for 2-3 months.
Yes. If you disavow links that were actually helping your site rank, you can lose positions. This is the biggest risk of the tool. Never bulk-disavow low-DA links without manual review. A niche industry blog with DA 15 and genuine readers may be sending real ranking signals. Review each link’s context, relevance, and traffic before adding it to the disavow file.
URL-level disavow (e.g., https://spamsite.com/bad-page/) tells Google to ignore one specific page. Domain-level disavow (e.g., domain:spamsite.com) tells Google to ignore all links from that entire domain, including subdomains. Use domain-level for known spam domains where every page is low quality. Use URL-level when a legitimate domain has one bad page linking to you but other good pages too.
Our SEO team handles link penalty recovery, including full backlink audits, disavow file preparation, webmaster outreach for link removal, and reconsideration request submission. Get Link Penalty Help →