function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Daniel González JiménezDaniel González Jiménez 

Spam Leads on Salesforce

We are receiving spam Leads on our org but we have been applying some techniques in order to stop them but no luck with it.

We can filter on the leads spam those spam leads (applying filter as we know how to distinguish them from real ones) but we can not stop them to receive the email when a new lead comes.

Place where Leads comes to our org:
- We have a web-to-Lead form (only one) on our website but we have reCaptcha and we are sending extra data when the user have submitted this form so we are sure we are not getting this fake leads from there.


Lead Settings/Notify Default Lead Owner is enabled

- We have set a customize template when a leads comes, assigned to a lead assignment rule.

When a lead comes, we are getting (default owner) a different template. This is the template we get (it seems a general one from Salesforce):

A lead has been assigned to you, the default owner. Click the link below to view the record in

We have seen that this templates is not set anywhere. So we are receiving spam and it seems that the lead assignment rule we have set to block this spam is not working.


Is there a way when a lead comes to our organization, before of adding to the leads list, evaluate it on Salesforce (for any field: lead status, lead source, email, ...) ?

Thanks in advance


Best Answer chosen by Daniel González Jiménez
Hello Daniel,

Yes! The lead evaluation is absolutely possible before all of your lead assignment rules gets fired. Triggers (Both of them, Before and Afters) are fired before the assignment rules.

Take a look on the sequence:

Now, in your case whenever the Lead comes from the website, you need to create let's say create a formula checkbox which would need to be checked prior to lead to be subjected for an Assignment rule.

Have a condition in an assignment rule which would only fire when that checkbox is true. And that checkbox will only be true when lead mataches all the conditions that you would specify in the formula. All in all, formula is maturing the lead for a subject to be an Assignment rule to get fired.

Now, for the unwanted leads (means for the SPAM leads), you can create a Trigger which would delete them right after they are inserted to the database if they don't meet the certain criteria. This way your database also keeps clean!

Hope this helps!