Title: Spam Prevention for Contact Form 7 and Comments
Author: ctomczyk
Published: <strong>18 fevereiro, 2023</strong>
Last modified: 25 maio, 2026

---

Pesquisar plugins

![](https://ps.w.org/spam-prevention-for-contact-form-7-and-comments/assets/banner-
772x250.png?rev=3208400)

![](https://ps.w.org/spam-prevention-for-contact-form-7-and-comments/assets/icon.
svg?rev=3208408)

# Spam Prevention for Contact Form 7 and Comments

 Por [ctomczyk](https://profiles.wordpress.org/ctomczyk/)

[Baixar](https://downloads.wordpress.org/plugin/spam-prevention-for-contact-form-7-and-comments.1.3.27.zip)

 * [Detalhes](https://br.wordpress.org/plugins/spam-prevention-for-contact-form-7-and-comments/#description)
 * [Avaliações](https://br.wordpress.org/plugins/spam-prevention-for-contact-form-7-and-comments/#reviews)
 *  [Instalação](https://br.wordpress.org/plugins/spam-prevention-for-contact-form-7-and-comments/#installation)
 * [Desenvolvimento](https://br.wordpress.org/plugins/spam-prevention-for-contact-form-7-and-comments/#developers)

 [Suporte](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/)

## Descrição

Spam Prevention for WP Contact Form 7 and WordPress Comments.
 This plugin adds 
a small code snippet to determine page scroll and add dynamically a unique token.
It also supports the “Contact Form 7 Database Addon – CFDB7” and prevents contact
form submissions from being saved if validation fails.

If the token doesn’t exists while submitting or call directly API then the incoming
request will be rejected.

You can see how it works on [SiteLint](https://www.sitelint.com/contact) website.

## Capturas de tela

[[

## Instalação

 1. Upload `/contact-form-7-prevent-spam` folder to the `/wp-content/plugins/` directory
    or install “Spam Prevention for Contact Form 7 and WordPress Comments” plugin in
    WordPress.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. That’s all.

## Avaliações

![](https://secure.gravatar.com/avatar/9779b78461e920bd472fda97833c8610c78d1ebb2e6eb6e86000ee2cba9b953e?
s=60&d=retro&r=g)

### 󠀁[Useful tool](https://wordpress.org/support/topic/useful-tool-122/)󠁿

 [ali925](https://profiles.wordpress.org/ali925/) 13 setembro, 2023

Excited to use this tool. Very effective for prevention spam.

![](https://secure.gravatar.com/avatar/c02a5d7d07554fdc68a72d8fdf8979a10080b5bcf64ed733dda09c15127088cc?
s=60&d=retro&r=g)

### 󠀁[Good one](https://wordpress.org/support/topic/good-one-586/)󠁿

 [husaine202](https://profiles.wordpress.org/husaine202/) 13 setembro, 2023

A good plugin developed by the expert, this plugin is a must-have for any WordPress
website owner. It's easy to set up, highly effective. Say goodbye to spam headaches
and hello to a cleaner, more secure website. I highly recommend it!

 [ Leia todas as 2 avaliações ](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/)

## Colaboradores e desenvolvedores

“Spam Prevention for Contact Form 7 and Comments” é um programa de código aberto.
As seguintes pessoas contribuíram para este plugin.

Colaboradores

 *   [ ctomczyk ](https://profiles.wordpress.org/ctomczyk/)

[Traduzir o “Spam Prevention for Contact Form 7 and Comments” para seu idioma.](https://translate.wordpress.org/projects/wp-plugins/spam-prevention-for-contact-form-7-and-comments)

### Interessado no desenvolvimento?

[Navegue pelo código](https://plugins.trac.wordpress.org/browser/spam-prevention-for-contact-form-7-and-comments/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/spam-prevention-for-contact-form-7-and-comments/)
ou assine o [registro de desenvolvimento](https://plugins.trac.wordpress.org/log/spam-prevention-for-contact-form-7-and-comments/)
por [RSS](https://plugins.trac.wordpress.org/log/spam-prevention-for-contact-form-7-and-comments/?limit=100&mode=stop_on_copy&format=rss).

## Registro de alterações

#### 1.3.27

 * Fixed CFDB7 spam prevention not working when CFDB7 loads after this plugin
 * Added isTrusted event check to comment form anti-spam injection
 * Added form[action*=”wp-comments-post.php”] selector for broader theme compatibility
 * Applied hash_equals() for timing-safe CF7 token comparison
 * Added missing i18n translation wrappers to error messages
 * Namespaced global variable to prevent collisions
 * Refactored comment token hash computation into a shared helper
 * Removed redundant empty functions.php

#### 1.3.26

 * Adjusting the changelog so that it does not contain HTML tags.

#### 1.3.25

 * Adjusting HTML aside element code to make it more accessible and SEO friendly

#### 1.3.24

 * Ensure HTML aside element gets accessible name through aria-labelledby.

#### 1.3.23

 * Make logo visually hidden

#### 1.3.22

 * Determine when the event source was from the user or dispatched via EventTarget.
   dispatchEvent()

#### 1.3.21

 * Add hidden field on the user action only

#### 1.3.20

 * Added deterministic anti-spam tokens for WordPress comments and Contact Form 
   7 submissions.

#### 1.3.19

 * Preventing false-positive “Sending mail has been aborted” errors in Contact Form
   7 when no wp_footer() hook is available.

#### 1.3.18

 * Adjusting styles for a logo

#### 1.3.17

 * Updating styles for a logo to make it accessible WCAG SC 2.5.8: Target Size (
   Minimum) (Level AA)

#### 1.3.16

 * Updating the README.txt about “Contact Form 7 Database Addon – CFDB7” support.

#### 1.3.15

 * Supports the “Contact Form 7 Database Addon – CFDB7” and prevents contact form
   submissions from being saved if validation fails.

#### 1.3.14

 * Updating Plugin Name

#### 1.3.13

 * Retesting with WordPres 6.8.1

#### 1.3.12

 * Wrap SiteLint logo into aside HTML element.

#### 1.3.11

 * Retesting with WordPres 6.8

#### 1.3.10

 * Retesting with WordPres 6.7.1
 * Changing the plugin thumbnail

#### 1.3.9

 * Adjusting and shortening link text to SiteLint

#### 1.3.8

 * Fixing “class SLSP_SiteLintSpamPreventionPublic does not have a method “handleWpCommentFormSubmitAction””

#### 1.3.7

 * Uploading version verified on WordPress 6.4.2

#### 1.3.6

 * Set lowest priority for adding SiteLint logo using PHP_INT_MAX

#### 1.3.5

 * Fixing reference to the method handleSubmitContactForm7FormAction

#### 1.3.4

 * Code formatting and updating version info; Tested up to: 6.3

#### 1.3.3

 * Use wp_print_footer_scripts instead of wp_footer to print script code

#### 1.3.2

 * Call add_action before function declaration

#### 1.3.1

 * Code formatting and updating version info

#### 1.3

 * Change add_action to do_action; return $submission in handleSubmitContactForm7FormAction
   function

#### 1.2

 * Replace empty string for “action” attribute in the HTML form element with a valid
   URL “#”

#### 1.1

 * Determine, if whole contact form is rendered within current browser viewport 
   and if so then apply solution immediately

#### 1.0

 * Initial version of the Plugin

## Meta

 *  Versão **1.3.27**
 *  Última atualização **5 meses atrás**
 *  Instalações ativas **10+**
 *  Versão do WordPress ** 4.7 ou superior **
 *  Testado até **6.9.10**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/spam-prevention-for-contact-form-7-and-comments/)
 * Tags
 * [comments](https://br.wordpress.org/plugins/tags/comments/)[contact form 7](https://br.wordpress.org/plugins/tags/contact-form-7/)
   [prevent](https://br.wordpress.org/plugins/tags/prevent/)[protection](https://br.wordpress.org/plugins/tags/protection/)
   [spam](https://br.wordpress.org/plugins/tags/spam/)
 *  [Visualização avançada](https://br.wordpress.org/plugins/spam-prevention-for-contact-form-7-and-comments/advanced/)

## Classificações

 5 de 5 estrelas.

 *  [  2 avaliações com 5 estrelas     ](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/?filter=5)
 *  [  0 avaliação com 4 estrela     ](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/?filter=4)
 *  [  0 avaliação com 3 estrela     ](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/?filter=3)
 *  [  0 avaliação com 2 estrela     ](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/?filter=2)
 *  [  0 avaliação com 1 estrela     ](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/?filter=1)

[Sua avaliação](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/#new-post)

[Ver todas avaliações](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/reviews/)

## Colaboradores

 *   [ ctomczyk ](https://profiles.wordpress.org/ctomczyk/)

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/spam-prevention-for-contact-form-7-and-comments/)