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.)
Latest posts by Brock Murray (see all)
- How to Carry Yourself in the Face of Crisis - April 2, 2020
- Connect with seoplus+ - September 1, 2017
- Investigating February’s Organic Rankings Volatility - February 10, 2017
- Mobile Web Browsing Overtakes Desktop Usage for the First Time Ever - November 2, 2016
- Google Data Studio Now Available in Canada - September 28, 2016