Skip to content

How to Block Self-Referrals (Pro)

Self referral is how an affiliate program leaks money without anybody noticing. An affiliate orders through their own link, often as a guest or from a second account, and collects a discount dressed up as commission. The reports look like a program that is working.

Every example on this page is an order placed on the demo through the real checkout, with the affiliate’s referral cookie set.

The fraud checks are subordinate to one setting. Go to DevDiggers Plugins → Affiliates → Configuration → Commissions and make sure Allow Self-Referrals is off.

The Allow Self-Referrals toggle on the Commissions settings tab

Turn self referrals on and every check stands down, deliberately. You have said the behaviour is allowed.

Go to Configuration → Fraud Prevention and scroll to Referral Fraud Prevention. Every check is on out of the box.

The four matching checks in Referral Fraud Prevention

Matching Email is the certain one. It compares the billing email with the affiliate’s account email and their PayPal payout email, after removing +tags and Gmail dots. A match refuses the commission outright.

The Matching Email checkbox highlighted

This is the check that earns its keep. The plain self referral block compares the logged-in buyer with the affiliate, so a guest order using the affiliate’s own inbox slips past it. On the demo, a guest order billed to affiliate+gifts@email.com was refused for the affiliate signed up as affiliate@email.com.

The other three are softer, so they go to review by default:

  • Matching IP Address: the order came from one of the last 20 addresses the affiliate signed in from. On the demo, the affiliate signed in from one address and a guest order from the same address a minute later was flagged.
  • Matching Browser: the order came from a browser the affiliate has signed in on. A second account opened in the same browser is caught. A private window is not.
  • Matching Billing Details: the billing phone or street address matches the affiliate’s own. On the demo, a guest order using the affiliate’s phone number was flagged.

When A Signal Matches decides what the three soft signals do.

The When A Signal Matches dropdown set to Flag the commission for review

  • Flag the commission for review: the commission is created on hold, as Flagged for Review. It is never paid until you approve it. This is the default and the right choice for most stores, because shared networks and family members do happen.
  • Refuse the commission: no commission is created. Choose this only if false positives cost you less than reviewing them.

Own Coupon Use overrides the choice in one case. When a signal matches and the order used the affiliate’s own coupon, the commission is always refused. The affiliate already got the discount.

Blocked Emails and Blocked IP Addresses stop an order earning commission whoever the affiliate is. A domain on its own line blocks every address on it.

The Blocked Emails list holding mailinator.com

With mailinator.com on the list, a demo order billed to sam.hart@mailinator.com was refused with The billing email is on the blocked emails list.

Go to Affiliates → Fraud. Flagged and rejected orders are counted per affiliate, and every refused referral is listed with its reason.

The Fraud Report with one affiliate’s flagged and refused orders and the two refused referrals with their reasons

A refused order also carries an order note, so whoever opens the order sees the reason too:

Affiliate commission refused for affiliate #4. The billing email matches the affiliate account or payout email, so this looks like a self referral.

Flagged commissions wait for you in the Commissions list. Working through them is How to Review Flagged Commissions.

With Silent Review on, which is the default, nothing. A flagged or rejected commission does not appear on the affiliate’s dashboard, and rejecting one sends no email. A refused referral never created a commission, so there is nothing to show either way.

That is on purpose. An affiliate who can see which orders were caught learns which signal caught them.

No check sees an affiliate who uses a different device, a different network, a different inbox and a different address. That is a real second person as far as any store can tell. The checks raise the cost of cheating, and the Fraud report shows you which affiliates are worth a closer look.