How to Disavow Toxic Backlinks: Step-by-Step Guide
To disavow toxic backlinks, create a
disavow.txt file listing harmful URLs or domains, then upload it via Google Search Console's Disavow Links tool. This tells Google to ignore those links when assessing your site.Syntax
The disavow.txt file uses a simple syntax to list URLs or domains you want Google to ignore. Each line contains one URL or domain. Lines starting with # are comments and ignored.
- Domain-level disavow: Use
domain:example.comto disavow all links from that domain. - URL-level disavow: Use the full URL like
http://spamwebsite.com/badlinkto disavow a specific page.
text
# Example disavow file
# Disavow entire domain
domain:spamdomain.com
# Disavow specific URL
http://badsite.com/badpage.htmlExample
This example shows a disavow.txt file disavowing one domain and one specific URL. Uploading this file in Google Search Console tells Google to ignore these backlinks.
text
# Disavow file example # Ignore all links from spamdomain.com domain:spamdomain.com # Ignore a single bad URL http://badsite.com/badpage.html
Output
Google will ignore backlinks from spamdomain.com and the specific URL http://badsite.com/badpage.html when assessing your site.
Common Pitfalls
- Disavowing good links: Accidentally disavowing quality backlinks can hurt your SEO.
- Wrong file format: The file must be plain text (.txt) encoded in UTF-8 without extra formatting.
- Not using domain prefix: Forgetting
domain:means only a single URL is disavowed, not the whole domain. - Ignoring link audit: Always audit backlinks first to identify truly toxic links before disavowing.
text
# Wrong way (missing domain prefix) spamdomain.com # Right way domain:spamdomain.com
Quick Reference
| Action | Syntax Example | Description |
|---|---|---|
| Disavow entire domain | domain:spamdomain.com | Ignores all backlinks from the domain |
| Disavow specific URL | http://badsite.com/badpage.html | Ignores one specific backlink URL |
| Add comment | # This is a comment | Ignored by Google, used for notes |
| File format | Plain text (.txt) | UTF-8 encoded without extra formatting |
Key Takeaways
Create a plain text disavow file listing toxic URLs or domains with correct syntax.
Use the Google Search Console Disavow Links tool to upload your disavow file.
Always audit backlinks carefully to avoid disavowing valuable links.
Use 'domain:' prefix to disavow entire domains, not just single URLs.
Check file format and encoding to ensure Google accepts your disavow file.