New: Blockly Checkout Customizer is live — checkout rules, upsells & checkout analytics.Install free
Tutorial

How to Block Referrer Spam and Junk Traffic Sources on Shopify

Spam referrers, junk ad placements and scraper sites send traffic that buys nothing and skews your reports. Here is how referrer blocking works on Shopify and where it falls short.

How to Block Referrer Spam and Junk Traffic Sources on Shopify

Quick answer: Referrer blocking stops visitors who arrive from a specific website or domain. On Shopify you can't do it natively, so you need an app that reads the referrer when the visitor lands and blocks or redirects them. It works well against real visits from spam domains, low-quality ad placements and sites that copy your store. It does nothing for "ghost" spam that never touches your store, and anyone can hide or fake a referrer. Use it as one filter next to bot, IP and VPN blocking.

Open your traffic sources report and you may find domains you have never heard of. Some send a few hundred sessions a week with a 100% bounce rate and zero add-to-carts. Others look like ordinary blogs but turn out to be copies of your own product pages. This guide explains what those referrers are, which ones you can block and how to do it without cutting off real customers.

What a referrer is

When someone clicks a link to your store, their browser usually tells your server which page they came from. That's the HTTP referrer (spelled "Referer" in the header, a typo that has stuck since the 1990s). Analytics tools use it to sort visits into sources like Google, Instagram or a partner blog.

Three things are worth knowing up front:

  1. The referrer is sent by the visitor's browser, so the visitor controls it.
  2. Many visits arrive with no referrer at all. That's normal.
  3. Modern browsers often send only the domain, not the full page URL, because of default referrer policies.

These three facts shape everything about referrer blocking.

The kinds of referrer traffic worth blocking

Spam referrers that actually visit

Some bots load your store with a fake or promotional referrer so the domain shows up in your reports. The hope is that you will get curious and visit their site. These sessions are real hits on your storefront. They use server resources and they pollute your analytics.

Junk ad placements

If you run display or affiliate campaigns, some of your clicks come from low-quality sites: made-for-ads pages, auto-refreshing pages or apps with hidden placements. The visits show up with that site as the referrer, often with near-zero engagement. Our guide on click fraud on Shopify ads covers the ad-platform side. Referrer blocking handles what reaches the store.

Scraper and clone sites

Some sites copy your product pages or embed your images. When their visitors click through, or when the copied page loads assets from your store, your store logs them as the referrer. Blocking the clone's domain cuts that traffic. It also gives you a list of domains to report to their host.

Abusive deal and forum threads

Sometimes a forum thread or deal group posts a pricing error or a working promo code. Those visits come with a clear referrer. Blocking or redirecting that domain for a few days can protect stock while you fix the problem.

What referrer blocking cannot do

Be clear about the limits before you build a long blocklist.

SituationDoes referrer blocking help?
Spam bot visits your store with a fake referrerYes, if the domain is consistent
"Ghost" spam that appears in analytics without visitingNo
Bot that sends no referrerNo
Bot that fakes a Google or Facebook referrerNo (you can't block those sources)
Real visitors from a scraper or clone siteYes
Low-quality ad site trafficYes, for the domains you identify

Ghost spam deserves a special mention. Some spam entries are sent straight to an analytics service's collection endpoint and never load your store. Nothing on your storefront can block traffic that never arrives. You have to filter it inside the analytics tool. Google Analytics 4 made this kind of spam harder than it was in older versions, but check your own reports for sessions with no page views on your store.

Spoofing is the second limit. A bot can send any referrer it likes, including google.com. You can't block Google, so referrer blocking is useless against a bot that pretends to come from there. That's why you need bot detection running as well.

The third limit is missing referrers. Privacy settings, browser extensions, in-app browsers and links in some email clients often send nothing. If your rule says "block anyone without a referrer", you'll block a good share of real shoppers, including people who typed your URL. Never block empty referrers.

Finding the domains to block

Start with data, not guesses.

  1. Export your sessions by referrer for the last 30 to 90 days from Shopify analytics or your analytics tool.
  2. Sort by sessions, then look at engagement: bounce rate, pages per session, add-to-cart rate and orders.
  3. Flag domains with meaningful traffic and essentially zero engagement.
  4. Visit each flagged domain from a safe environment, such as a sandboxed browser, to see what it is. Some spam domains host malware, so don't click around on your work machine.
  5. Check the same sessions for other signals: data center IPs, unusual user agents, a single country you don't sell to.

Our guide to spotting bot traffic in your analytics goes further on reading these patterns.

As an example, imagine a domain that sent 1,200 sessions last month with 0 add-to-carts, an average session under two seconds and every visit from the same hosting provider. That's a clear block. A small blog that sent 40 sessions and two orders is a real referral, even if you've never heard of it.

Block or redirect

You have two choices once a domain is on the list.

Block shows the visitor an error or blank page. This is right for spam bots and clone sites where no real customer is involved.

Redirect sends them somewhere else, such as your homepage without the promo, a "this offer has ended" page or a different regional store. This is better for deal threads and ad placements, where some visitors may be genuine. They still reach you, just not the page or price you're protecting.

Whichever you choose, write down why each domain is on the list and review it every quarter. Domains change hands, and a spam domain today could be a legitimate partner later.

Doing it with Blockly Fraud Filter

Blockly Fraud Filter (formerly Shieldy) can block visitors by referrer URL, alongside its blocks by ISP, IP and country. It's free to install from the Shopify App Store.

A practical setup looks like this:

  • Add the spam and clone domains you found to the referrer block list.
  • Turn on the bot and VPN blocker so bots that fake or drop the referrer are caught by other signals, including proxy, Tor and device fingerprinting checks.
  • If one hosting company is behind most of the junk, block that ISP as well. Our ISP blocking guide explains when that's safe.
  • Use geolocation redirects (auto, error or manual) where you would rather send visitors elsewhere than block them outright.
  • Check the blocked-visitor logs and the geo heatmap after a week to confirm the rules hit what you expected and nothing else.

The app also has content protection that disables right click, keyboard shortcuts and inspect. That makes casual copying harder, which helps if clone sites are part of the problem. Plan details are on the pricing page.

Keeping your reports honest

Blocking at the store reduces junk sessions from now on. It doesn't clean up history. For past data, add an analytics filter or segment that excludes the same domains, and mark the date you turned on blocking in your reports so you don't mistake the drop in sessions for a drop in demand.

Your conversion rate will probably rise once the junk sessions disappear. That isn't more sales, just a cleaner denominator. Compare orders and revenue, not only rates, when you judge the change.

The takeaway

Referrer blocking is a narrow, useful tool. It removes real visits from spam domains, junk ad placements and clone sites, and it lets you redirect traffic from threads that are draining a promotion. It can't stop ghost spam, bots that fake a big-name referrer or bots that send no referrer at all. Build the list from your own data, never block empty referrers, and run it alongside bot, VPN and ISP rules so the gaps are covered.

Frequently asked questions

Can I block a referrer in Shopify without an app?

Not directly. Shopify has no setting to block visitors by referring domain. You can filter referrers out of your analytics reports, but stopping the visit itself needs an app that checks visitors as they land.

Why do spam referrers still show up after I block them?

Some of them are ghost spam sent straight to your analytics service without ever loading your store, so a storefront block can't touch them. Filter those inside your analytics tool. Also check that the domain in your rule matches the one in your reports, including any subdomain.

Should I block visitors who have no referrer?

No. Many real shoppers arrive with no referrer because they typed your URL, clicked an email link or use privacy tools. Blocking empty referrers would turn away a large share of genuine traffic.

Will blocking referrers hurt my SEO?

Blocking spam and clone domains doesn't affect how search engines crawl your store. Just make sure you never block search engine referrers or legitimate crawlers, and keep allowed bots like Googlebot on your allowlist.

Up nextLocal Pickup and BOPIS Fraud on Shopify, and How to Stop It

Related articles

More tutorial articles →
Free forever plan

Ready to protect
your store?

Join 5,000+ Shopify merchants. Install in 30 seconds and block your first bad actor today.

  • No credit card
  • 5-minute setup
  • Cancel anytime