To detect fraudulent affiliates, you must log the quality of the traffic they bring to your website. It's important to keep track of your conversion rates, but also of the typical user behavior. Monitoring data points relating to user behavior allows you to flag suspicious traffic that comes with affiliate fraud.