Adding anti-spam measures

Most web developers will know that if you have a contact form or any kind of web form publically available on your website, there will be web bot submissions and a lot of spam. Most web bots will be thwarted by the JavaScript-only web form we have been creating over the last seven recipes, but with browser automation and web bots becoming ever cleverer, it is still important to add anti-spam measures to your web forms.

Getting ready

Ensure that you have completed the last seven recipes and have the code readily available. Remember that if you would just like to use the code without fully understanding how it works, skip to the end of this chapter, to the How it works... section, to grab it all.

How to do it…

Add simple anti-spam ...

Get jQuery 2.0 Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.