TapCub is live — analytics, insights and live chat, free on one platform
Analytics

Referral Spam: Three Kinds, How to Spot Each, and Where to Stop It

Referral spam comes in three kinds: ghost hits that never touch your site, crawler visits and scripted browser visits. The report signals for each and the fix that belongs at each layer, from collection allowlists to filters.

Xu An Published Nov 3, 2026 5 min read Analytics
Made-up domains and demo numbers. Spam rows share one page per session, zero duration and full bounce.Sample data

Try it on your own data

Every report in this article is in the free plan. One snippet for web and apps, up to 10 sites.

Start free

Odd referrers with names you have never seen usually mean referral spam. This guide separates its three kinds (ghost hits, crawler visits and scripted browser visits), shows the report signals for each, and the fix that belongs at each layer, from collection allowlists to report filters.

What you will learn

  • Ghost spam never touches your site; only a collection allowlist stops it
  • Spam referrers bounce, last zero seconds and often land on pages that do not exist
  • Collection rules fix new data; use report filters for past periods

What referral spam is

Referral spam (also called referrer spam) is fake traffic that shows a website as its referrer, so the site's name appears in your analytics reports. The goal is usually to make you curious enough to visit it (Wikipedia). It distorts traffic, bounce rate and channel reports, and some of it is not traffic at all.

Three kinds of referral spam

The fix depends on which kind you have:

  1. Ghost spam: fake hits sent straight to an analytics collection endpoint using your site's tracking id. The spammer never loads your pages, so nothing on your server can block it.
  2. Crawler spam: a bot requests your pages with a fake referrer header. It shows up in server logs, and in analytics only if the bot runs your script.
  3. Scripted browser visits: headless browsers that load pages and run scripts, so they look like real visitors with a referrer.

The table lists each kind with its signal and the layer where it can be stopped.

KindHow it worksSignalWhere to stop it
Ghost spamFake hits sent to the analytics endpointWrong hostname; pages that do not existCollection allowlist of your domains
Crawler spamBot requests pages with a fake referrerServer logs; bot reportsBot detection; server blocks
Scripted browser visitsHeadless browser runs your script100% bounce, 0 s, odd user agentsBot detection; exclusion rules
Any kind, past dataAlready storedSpikes from unknown domainsReport filters

Blocking on the server cannot stop ghost spam.

Spot it in your reports

Spam referrers share a pattern that real referrers rarely do:

  • Every session bounces, with zero or near-zero duration.
  • Landing pages that do not exist, or the hostname is not yours (ghost hits).
  • Referring domains you have never heard of, often with words like "traffic", "seo" or "buttons", sometimes with a different top-level domain each week.
  • Spikes on specific days, then silence.

In the example, the first two referrers are real: sessions last minutes and reach several pages. The last three are spam: one page per session, zero seconds, and one lands on a path the site does not have.

app.tapcub.com/web/sources?tab=referrers

Referrers · last 30 days

Sample
ReferrerSessionsPages / sessionAvg durationBounceStatus
news.example.org1,2403.12m 40s38%Real
partner-blog.example4102.61m 55s44%Real
free-traffic-tool.example8201.00s100%Spam
seo-buttons.example5601.00s100%Spam
best-offers.example3001.00s100%Spam · lands on /xyz-promo
Sample data
Made-up domains and demo numbers. Spam rows share one page per session, zero duration and full bounce.

Fix it at the right layer

  • At collection: accept hits only from your own domains. Ghost hits come from elsewhere and are rejected before storage. This is the single most effective control.
  • Bot detection: separate recognised bots from human reports, so crawler spam does not inflate visitors.
  • Exclusion rules: drop hits by hostname, user agent, IP or path when a pattern is clear.
  • Report filters: hide a referrer from a report view while you investigate, without deleting data.
  • On the server: blocking a crawler's IP or user agent stops server load, but cannot stop ghost spam, which never reaches you.

Avoid one common mistake: do not visit spam domains to "check" them.

Clean the reports you share

Rules that act at collection only affect new data. For past periods, use a saved filter that excludes the spam referrers, and note the date range in anything you share. Compare totals before and after: if spam was a large share, channel percentages and bounce rate shift noticeably. Related: direct traffic, where some spam lands when the referrer is missing, and website visitor tracking.

Referral spam in TapCub

TapCub checks every hit against the project's allowed domains: if the request's origin host (and the page URL host) is not on the list, the event is dropped. The collector still answers 202, so a spammer cannot tell whether the hit was stored (project settings). That stops ghost spam that sends hits with your site key from other origins.

Recognised bots go to the separate Bots report by default, not into human visitors, sessions and pageviews (bots). Exclusion rules drop events by address, path, hostname or user agent, and filters let you narrow any report while you investigate (filters & sharing). To exclude your own team's visits as well, see exclude internal traffic. More on bots and channels.

FAQ

What is referral spam?

Fake traffic that shows a spammer's website as the referrer, so it appears in your analytics reports.

What is ghost spam?

Fake analytics hits sent directly to a collection endpoint with your tracking id, without ever visiting your site.

How do I block referral spam?

Accept hits only from your own domains, separate bots from human reports, and add exclusion rules for clear patterns. Server blocks only help with crawler spam.

Is referral spam harmful?

Mostly to your data: it inflates traffic and bounce rate and pollutes channel reports. Do not visit the referring sites.

Can I remove referral spam from past data?

Collection rules apply to new data. For past periods, exclude the spam referrers with a report filter.

Was this article helpful?

We use your answers to fix and expand this page.

Xu An

Customer Experience Consultant

Writes about live chat, visitor conversations, and self-service, sharing practical ways to make customer communication clearer and more effective.

Keep spam out of your reports

Allowed domains checked on every hit, bots in their own report, exclusion rules and filters.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics