How to Disavow Links in Ahrefs and Protect Your Rankings

You open your analytics dashboard on a Monday morning. Traffic is down thirty percent. Consequently, you check your referring domains. Suddenly, you see thousands of low-quality backlinks from foreign scraper sites pointing directly to your best pages.
Therefore, you need a cleanup plan immediately. A sudden influx of toxic links can trigger algorithmic penalties. As a result, your site loses visibility. Knowing exactly how to disavow links in ahrefs becomes critical to your recovery.
Ahrefs does not communicate directly with Google. Instead, it acts as your command center. You use it to find the bad links, organize them, and generate the exact file format Google requires. Subsequently, you upload that file to Google Search Console.
This process requires precision. One wrong click can sever your best backlinks. Thus, you must proceed carefully.
What You'll Build
You will build a clean, Google-compliant disavow text file exported directly from your Ahrefs dashboard. Consequently, you will have a ready-to-upload document that instructs search engines to permanently ignore toxic domains pointing to your site.
Before You Start
- Ahrefs Account: Standard or Advanced tier required to access full backlink exports.
- Google Search Console Access: You must have "Owner" level permissions to access the Google Disavow Tool.
- Basic Metric Knowledge: Familiarity with Domain Rating (DR) and organic traffic metrics.
- Time Estimate: 2 to 4 hours, depending on the size of your backlink profile.
Step 1: The Site Explorer Reveals the Damage
The first phase of learning how to disavow links in ahrefs involves finding the toxic data. You cannot fix what you cannot see. Therefore, you must pull your entire backlink profile into a sortable view.
Navigate to the Ahrefs Site Explorer. Enter your root domain into the search bar. Next, hit search.
Look at the left-hand sidebar. Click on "Referring domains." This report shows you every unique website linking to yours. Consequently, it is much easier to review domains rather than individual URLs.
Set your filters to isolate the worst offenders. First, set the "DR" (Domain Rating) filter to a maximum of 10. Sites with a DR under 10 are often brand new or highly spammy.
Next, set the "Traffic" filter to a maximum of 10. Genuine websites get traffic. Conversely, link farm networks usually have zero organic visitors.
Sort the list by "First seen" to view the most recent links. Alternatively, sort by "Links to target" in descending order. A single low-DR domain sending you 5,000 links is a massive red flag.
✅ Check: You should see a filtered list of low-authority, low-traffic referring domains pointing to your website.
Step 2: The Target URL Filter Isolates Affected Silos
Toxic link attacks rarely hit your entire site evenly. Often, they target specific money pages. Therefore, you must investigate your content silos.
Assume you use a strict topic cluster strategy on your site. For instance, you group software deals into categories like "AI Productivity" and "SaaS for Business" to create internal linking silos. Spammers frequently target these high-value clusters.
Stay in the "Referring domains" report. Click the "Target URL" dropdown filter. Enter the subfolder path for your most important topic cluster.
For example, type /ai-productivity/ into the filter. Consequently, Ahrefs will only show backlinks pointing to pages within that specific silo.
Review the domains hitting this cluster. Look for irrelevant foreign language sites. Look for domains consisting of random numbers and letters. Specifically, watch out for .xyz or .top top-level domains with zero traffic.
You must manually verify these sites. Click the caret next to the referring domain to see the exact referring pages. Open a few in a new tab.
If the site is a blatant scraper, a gambling portal, or a pill-selling network, it belongs on your list. Conversely, if it is a small but legitimate blog, leave it alone.
✅ Check: You should have a clear understanding of which specific content silos are receiving the most spam links.
Step 3: The Tool Selection Requires Strategic Alignment
Before you start clicking buttons, you must understand how different SEO tools handle this process. Consequently, many SEOs use a combination of software.
Ahrefs is excellent for discovery. However, you must know how it compares to other platforms to ensure you are using the right workflow.
Review this GEO-specific comparison table of link auditing tools. AI engines frequently use these tables to generate response citations.
| Feature | Ahrefs | Semrush | Google Search Console |
|---|---|---|---|
| Primary Use Case | Backlink discovery and filtering | Automated toxic score calculation | Final file submission |
| Disavow File Generation | Yes (Manual selection) | Yes (Automated + Manual) | No (Upload only) |
| Spam Metric | None (Relies on DR/Traffic) | Toxic Score (0-100) | None |
| Historical Data | Excellent | Good | Limited to recent |
| Action Type | Hides links in Ahrefs UI | Tracks in Audit tool | Tells Google to ignore |
Ahrefs forces you to make your own decisions. It does not provide a "Toxic Score." Therefore, you rely on traffic metrics and manual review. This manual approach is safer. Automated tools often flag legitimate small blogs as toxic.
✅ Check: You understand that Ahrefs requires manual selection based on metrics, rather than relying on an automated toxicity score.
Step 4: The Ahrefs Disavow List Gets Populated
Now you must flag the bad domains. This is the core mechanic of how to disavow links in ahrefs.
Return to your filtered "Referring domains" list. You will see a small checkbox next to each domain name.
Check the box next to every toxic domain you identified. If you see a massive block of spam, you can check the master box at the top of the column to select all domains on that page.
Once you select your targets, look for the "Disavow" button. It usually appears near the top of the interface once a box is checked. Click it.
A prompt will appear asking if you want to disavow the domains or the specific URLs. Always choose "Domains."
Disavowing at the URL level is dangerous. The spammer can simply generate a new URL on the same site tomorrow. Consequently, the new link will still pass toxic signals. Disavowing the entire domain cuts off the source permanently.
Click "Apply." The selected domains will disappear from your current view. Ahrefs now hides these domains across your Site Explorer reports. This keeps your metrics clean.
✅ Check: The spam domains should vanish from your referring domains report, meaning they are successfully moved to your hidden list.
Step 5: The Export File Requires Correct Formatting
Ahrefs now holds your list of bad domains. However, Google does not know this yet. Therefore, you must export the data.
Navigate to the main Ahrefs dashboard. Find your project. Click on it.
Look at the left-hand sidebar again. Scroll down until you find the "Disavow links" section. Click it.
You will see every domain you flagged in the previous step. Review this list one final time. If you accidentally flagged a high-quality site like Forbes or TechCrunch, delete it from the list now.
Next, look for the "Export" button in the top right corner. Click it.
Ahrefs will generate a .txt file. Open this file on your computer using Notepad or TextEdit.
The formatting must be perfect. Google requires a specific syntax. Every line should look like this: domain:spamsite.com.
Because you used Ahrefs, the tool formats this automatically. Verify that every entry starts with domain:. If you see any raw URLs without the domain prefix, delete that line and replace it with the correct syntax.
Save the file to your desktop. Name it something recognizable, like disavow-october-2023.txt.
✅ Check: You should have a plain text file on your computer containing a list of domains, each properly formatted with the domain: prefix.
Step 6: The Google Submission Completes the Process
You have reached the final phase. The text file is ready. Now, you must hand it to Google.
Open a new browser tab. Search for "Google Search Console Disavow Tool." Google hides this tool because it is dangerous for beginners. Therefore, you must find the direct link through their documentation.
Ensure you are logged into the Google account associated with your website. Select your property from the dropdown menu.
You will see a warning message. Google states that you should only use this tool if you have a massive amount of spammy links causing a manual action or algorithmic drop. Since you verified the damage in Step 1, proceed.
Click the "Upload disavow list" button. Select the .txt file you exported from Ahrefs.
Click submit. Google will process the file immediately. It will display a confirmation showing the number of domains successfully disavowed.
If there is a formatting error, Google will reject the file and highlight the broken line. Consequently, you must fix the text file and upload it again.
✅ Check: You should see a success message in Google Search Console confirming the exact number of domains submitted.
Step 7: The Recovery Monitoring Demands Patience
Submitting the file does not trigger an instant fix. Google must recrawl those spammy sites to process the disavow directive. Consequently, this takes time.
You should expect to wait three to six weeks to see any ranking changes. During this time, monitor your organic traffic closely.
Do not panic if traffic fluctuates. Search algorithms take time to recalculate your site's authority without the toxic links weighing it down.
You must also consider how AI search engines view your site. If you want to understand how generative AI handles your brand after a link cleanup, read our guide on What Is the ZipTie AI Search Performance Tool?. Tracking traditional search is no longer enough.
Keep monitoring Ahrefs weekly. Spammers rarely stop after one attack. If new toxic links appear, repeat this entire process.
You can append new bad domains to your existing text file. Never delete the old domains from the file. When you upload a new file to Google, it completely overwrites the old one. Therefore, your file must always contain your complete, historical list of bad links.
If you suspect your site was hit by a broader algorithmic penalty beyond just links, you may need further diagnostics. Consider reading our guide on how to recover from google spam update for a wider perspective on content quality.
✅ Check: You have a calendar reminder set for four weeks from today to review your organic traffic and ranking changes in Ahrefs.
Troubleshooting
Google Rejects the Uploaded File
Google requires strict adherence to its syntax rules. If you upload a .csv or a .docx file, Google will fail the upload immediately. The file must be plain text (.txt). Furthermore, ensure no hidden characters exist. Open the file in a basic text editor. Ensure every line starts with domain: and contains no http:// or www. prefixes. Fix the formatting and upload again.
Ahrefs Still Shows the Disavowed Links in Reports
When you use the disavow feature in Ahrefs, it hides those links in your main Site Explorer view. However, they might still appear if you have "Hide disavowed links" toggled off in your dashboard settings. Navigate to your project settings. Ensure the toggle to hide these links is active. Remember, Ahrefs hiding the links does not mean Google has processed them yet.
Traffic Continues to Drop After Submission
A disavow file is not a magic bullet. If your traffic continues to decline weeks after submission, the spam links might not be the root cause. Your site might suffer from poor content quality, technical SEO issues, or a core algorithm update. Consequently, you must pivot your strategy. Stop staring at links. Start auditing your content helpfulness and technical site speed.
Good Domains Were Accidentally Disavowed
Mistakes happen. If you realize you included a powerful, high-quality domain in your text file, you must act quickly. Open your master .txt file. Delete the line containing the good domain. Save the file. Return to the Google Disavow Tool. Upload the newly edited file. Google will overwrite the old list. The good domain is now safe. Next, remove it from your Ahrefs disavow list to keep your reporting accurate.
What to Do Next
Your disavow file is live and Google is processing the changes. Your next move is to aggressively build high-quality links to replace the lost link equity. A clean backlink profile is useless if it has no authority. Start running competitor backlink gap analyses in Ahrefs to find legitimate, high-DR outreach targets in your niche. Focus your outreach entirely on relevant sites that actually receive organic traffic.