Skip to content

Instantly share code, notes, and snippets.

@irishgeoff20
Created October 5, 2023 04:23
Show Gist options
  • Save irishgeoff20/fbcb0e1478a18fee7d734902d5ec5751 to your computer and use it in GitHub Desktop.
Save irishgeoff20/fbcb0e1478a18fee7d734902d5ec5751 to your computer and use it in GitHub Desktop.
stop form spam
Form spam, also known as comment spam or web form spam, refers to the unsolicited and often irrelevant or malicious submissions made through online forms on websites. These forms can include contact forms, comment sections, registration forms, and more. Form spam is typically created and submitted by automated bots or individuals with the intent to promote their own products or services, spread malware, or manipulate search engine rankings.
Common examples of form spam include:
1. **Comment Spam:** In the context of blogs and content management systems, spammers may submit comments that contain links to their own websites or products. These comments are often unrelated to the content of the page.
2. **Contact Form Spam:** Spammers may use contact forms to send unsolicited messages or advertisements to website owners. This can be annoying for website administrators and can clutter their inbox.
3. **Registration Form Spam:** Some websites require users to register before accessing certain content or features. Spammers may use automated bots to create fake user accounts with the intention of either promoting their own content or engaging in malicious activities.
4. **Search Engine Spam:** Spammers may use online forms to submit links to their websites in an attempt to manipulate search engine rankings, a tactic known as "link spamming."
To combat form spam, website owners often implement various security measures, such as CAPTCHA challenges, honeypots (hidden fields designed to trap bots), and content moderation. Additionally, there are anti-spam plugins and services available for popular content management systems like WordPress and tools like Google's reCAPTCHA that help reduce the prevalence of form spam.
<form action="https://fabform.io/f/{insert-form-id-here}" method="post">
<label for="firstName">First Name</label>
<input name="firstName" type="text" required>
<label for="lastName">Last Name</label>
<input name="lastName" type="text" required>
<label for="email">Email</label>
<input name="email" type="email" required>
<p>Powered by <a href="https://fabform.io" target="_blank">fabform.io</a></p>
<button class="button is-link" type="submit">Test</button>
</form>
@irishgeoff20
Copy link
Author

This is a good way to stop form spam with a form backend service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment