How Often Do AI Assistants Hallucinate Links? 16 Million URLs Studied
In this guide
AI assistants like ChatGPT and Claude can hallucinate URLs and direct visitors to non-existent pages on your website. But how often does it happen? AI assistants hallucinate links more often than most site owners realize, and this article looks at the numbers from a study of 16 million URLs to find out exactly how often.
To find out, the researchers looked at the status code of 16 million unique URLs cited by ChatGPT, Perplexity, Copilot, Gemini, Claude, and Mistral. They found that AI assistants send visitors to 404 pages 2.87 times more often than Google Search. ChatGPT is the greatest offender, with 1.01 percent of clicked URLs and 2.38 percent of all cited URLs returning a 404 status, compared to baseline 404 rates of 0.15 percent and 0.84 percent respectively.
How Often Do AI Assistants Hallucinate Links? Test 1: Clicked URLs
For the first test, the researchers used anonymized data from a free analytics tool. This allowed them to see actual visits to AI-recommended URLs on real websites. The methodology was straightforward: they used analytics data to find all URLs with an AI assistant like ChatGPT or Perplexity as their referrer, marked URLs as a possible 404 page if the page title contained either 404 or the phrase not found, and for each AI assistant compared the number of possible 404 pages to the total number of referred URLs to find their 404 rate.
ChatGPT has the highest rate of 404 pages, with 1.01 percent of all cited URLs containing 404 or not found in their page title. Claude follows with 0.58 percent of URLs, followed by Copilot at 0.34 percent, Perplexity at 0.31 percent, and Gemini at 0.21 percent. Mistral has the lowest 404 rate at 0.12 percent, but also sends the lowest amount of referral traffic, making it the smallest sample in this test.
This is not a perfect test. Some 404 pages may not include 404 or not found in the page title. And not all links hallucinated by AI assistants will receive clicks, and will therefore not appear in analytics data, so it is likely that the study is under-reporting the total number of hallucinated URLs. Some fraction of these 404 pages may also be genuine 404 pages, and not hallucinated URLs. Extra context comes from comparing to a base rate of 404 pages: the researchers looked at the 404 rate for all unique URLs with Google as their referrer, 629 million unique URLs, and this 404 rate was 0.15 percent.
Test 2: Cited URLs in Brand Radar
The researchers also ran a similar test using a massive searchable database of millions of AI assistant prompts and outputs. Using this data, they can see all URLs cited by AI assistants, and not just those that received a click. They found all URLs cited by ChatGPT, Perplexity, Copilot, and Gemini in the databases. For those URLs also stored in the crawler database, 65 percent of total URLs, they retrieved the most recent status code. For each AI assistant, they calculated the 404 rate of cited URLs in the crawler database.
The 404 rate of cited URLs, and not just cited and clicked URLs, is much higher than in the previous test. Again, ChatGPT has the highest rate of 404 pages at 2.38 percent, followed by Perplexity at 0.87 percent and Gemini at 0.86 percent in close succession. Copilot has the lowest 404 rate, at 0.54 percent.
This test also has limitations. As before, some number of these 404 pages will return a 404 status for some reason other than hallucination. The study is also underestimating the total number of 404 URLs, because it can only see the status code for those URLs that are in the crawler database, and a decent percentage of hallucinated URLs would be expected to be absent from the crawler database, because they have never existed. As before, the researchers wanted to compare these figures to a baseline 404 rate. To do that, they extracted all unique URLs from the top 20 positions of 400,000 search results pages.
Why Do AI Assistants Hallucinate Links?
There are two main causes of hallucinated links. Some portion of cited URLs used to be valid, but now return a 404 status. AI assistants use a combination of web search and their own internal knowledge. It is possible that some of the URLs they cite may have existed at one time, but have since been deleted or moved without redirecting the original page, especially when relying solely on internal knowledge. This also explains why a high number of these 404 pages exist in the crawler database.
Another portion of cited URLs are true hallucinations, in the sense that they fit the expected pattern of URLs for a given website, but do not actually exist. For the Ahrefs blog, the most commonly-visited hallucinated URLs are pages like the internal-links page and the newsletter page. Given that the blog writes about SEO topics and has a newsletter, these URLs fit the pattern of typical blog pages, but they do not actually exist. Some of these hallucinated links may also be present in the crawler database. If published AI-generated content contains a hallucinated URL, the crawler will attempt to fetch it.
How to Find Your Website's Hallucinated URLs
If you want to measure the impact of hallucinated URLs, the best data source at your disposal is your own website analytics. Here is how to test this for yourself. Step one: filter your website analytics to show AI traffic. Start by filtering your website analytics to show the visits received from AI assistants. If you use GA4, you will need to apply a regular expression to the Session source dimension within an Exploration report. One practitioner recommends a regex pattern that matches common AI referrers such as ChatGPT, OpenAI, Perplexity, Claude, Gemini, Copilot, DeepSeek, and Mistral.
Step two: generate an Apps Script to return status code. Next, ask ChatGPT or your AI assistant of choice to generate an Apps Script to return the status code for URLs in a Google Sheet. Then, in your Google Sheet, navigate to Extensions, then Apps Script, and paste and save your script. Create a new column in your Google Sheet, call your script, target the cell containing your URL, and apply to the whole column. This can take a while if you have thousands of URLs: for big websites, it would be better to use a crawler instead.
Step three: filter to 404 status and more than 10 visitors. Next, filter your sheet to show just URLs returning a 404 status code and receiving visitors. The researchers set the threshold to URLs receiving greater than 10 visitors per month, but you can use whatever threshold makes sense for your website. You can manually inspect some of these URLs to confirm that they are hallucinated, and not real website pages that are unavailable for some other reason.
Step four: 301 redirect, if it makes sense. If you have hallucinated pages receiving a sizeable number of visits, it might be worth 301 redirecting the hallucinated URL to a relevant page on your website, if you have one. You will need to guess what the hallucinated page may have been about, but often the URL alone will be enough to make an educated guess: visitors to the hallucinated keywords URL will probably benefit from a real guide to keyword research.
Should You Care About Hallucinated Links?
At the last measure, AI assistants, primarily ChatGPT, accounted for 0.25 percent of a total website's traffic, compared to Google at 39.35 percent. With 1.01 percent of ChatGPT's referred traffic leading to a 404 page, hallucinated URLs impact a small percentage of an already-small percentage of an average website's traffic. This is a useful exercise for understanding another quirk of AI search, but it does not represent some huge growth lever. If you can minimize the impact of hallucinated URLs with very little effort, it is probably worthwhile.
For that reason, the researchers were about to add a new filter to their analytics tool that will help you find hallucinated URLs in just two clicks. The practical takeaway is simple: check your analytics for AI-referred 404s once a quarter, redirect the ones that get real visits, and improve your 404 page for the rest. Hallucinated links are a real phenomenon, and ChatGPT is the worst offender by a clear margin, but for most sites the fix is a thirty-minute job, not a strategy. The bigger lesson is about how AI search works: models predict plausible URLs the same way they predict plausible words, and a plausible URL is not always a real one.
Earn
Zohaib Faisal is the founder and editor of EarnDesk — a freelancer and website builder based in Lahore, Pakistan, with 15+ professional certificates.