Web

How to Reduce Spam Leads in Salesforce With Web-to-Lead

Avatar for Brock Murray

Brock Murray
Co-Founder / COO

How to Avoid SPAM in Salesforce Leads
How to Avoid SPAM in Salesforce Leads

It’s always  a great feeling to get leads through your website. However it is a bit demotivating when you go to review the lead and you realize it’s SPAM! I noticed we  were getting 1-2 “leads” daily around 3-4 AM, with the company name often being  ‘Ranks India’. I realized the only way to block this automated spam filling out the form was to disable the submit button if the company name matches a pre-defined string.
Here is a hack that I coded in jQuery to reduce the amount of spam leads we’re receiving in our Salesforce dashboard. As you can see, when the company input (tagged as id=’company’) has something inputted (eg. keyup) it activates the function. Then it checks the value and if it matches Ranks India or  a2zesolutions.com it disables the submit button. See below for the jQuery code. This needs to be placed between the <head> and </head> tags on your contact form (or landing page.)

<script type="text/javascript">
$( "#company" ).keyup(function() {
var value = $( this ).val();
if(value == 'Ranks India' || value == 'a2zesolutions.com') {
$('input[type="submit"]').attr('disabled','disabled');
}
})
.keyup();
</script>

 
 

Avatar for Brock Murray

Brock Murray

Brock Murray is a digital marketer and entrepreneur with over 15 years of experience in SEO, paid advertising, and digital strategy. He co-founded seoplus+ in 2012, growing it into one of Canada's fastest-growing companies with a team of 50+ digital marketing specialists.

View latest posts
Posted in Web

Want More Sales? Get 3 Tips From a Web Expert!

Our Web specialist will review your website and provide actionable tips to help increase your revenue

"*" indicates required fields

Name*
This field is hidden when viewing the form

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Tiktok Graphic 2024

Passionate Marketers Striving to Make Your Life Better

Meet the team you'll work with. We can’t wait to learn more about your goals so we can achieve them together.

ABOUT US