Prevent referral pings from being sent too often or by non-referrers
Closes https://gitlab.com/minds/engine/issues/657