Postado por Chris Reynolds
Isso pode acontecer a qualquer momento. Você abriu o seu evento para registros e, de repente, inundado por obviamente falsos usuários e transações incompletas. Spam está em todos os lugares (e não queremos dizer a comida). está em sua caixa de entrada, está em seus comentários e está em seus eventos.
Where does it come from? A lot of spam — particularly the type of spam that fills up contact forms (and event registration forms) — comes from a specific kind of script designed to identify potential security holes in your site like this one. These types of applications are designed for admins to check their site before deploying it live, but in the wrong hands can be run on a site, or a series of sites, automatically, and — at the very least — inject huge dumps of worthless code into your database and — at worst — obtain database access and the ability to manipulate the data stored on your server. There are a few different ways you can protect yourself, your data and your event site against spam registrations.
A primeira opção é a melhor solução e mais recomendada: Habilite o módulo mod_security na sua instalação do Apache. A maioria dos registros de spam vem de bots ou scripts que buscam formulários e os preenchem com dados remotamente (por exemplo, na verdade não é feito por uma visita humana ao seu site, mas uma máquina que está executando o seu código sem nunca atingir o seu site). O módulo mod_security protege seu site contra estes tipos de submissões remotas. Se você não tem acesso para configurar os módulos do Apache estão ativados ou desativados no seu servidor, Você pode perguntar ao seu webhost se é possível habilitá-lo. In my opinion, this should be on by default on all Apache servers (and IIS and nginx — which it also supports).
Se habilitar o mod_security não é uma possibilidade em seu ambiente — porque você não tem acesso à sua configuração do Apache ou porque seu host não é capaz ou está disposto a ativar ou instalar o pacote mod_security — você pode usar o reCAPTCHA para exigir que os participantes preencham um formulário CAPTCHA antes que seu registro seja registrado. reCAPTCHA is part of an initiative to digitize books, newspapers and radio recordings. Every time you enter a response in a reCAPTCHA form, you are helping the software identify real words that a computer was unable to read. Since the words that appear in a reCAPTCHA form have already failed sophisticated OCR technologies to translate them into text, spam bots aren’t likely to be able to read it, either, so you’re protecting your forms when you require a CAPTCHA for verification. While this can be arguably somewhat more annoying to the user, it will thwart any bot attempt to fill the form with garbage. For more information about how reCAPTCHA works, check out the reCAPTCHA site.
Você também pode usar o plugin do Espresso de Usuário WP para tornar todos os seus eventos somente membros e exigir que seus usuários façam login usando o sistema interno de registro de usuário do WordPress. Even if you do not have some form of human verification on your site’s registration process (this is not recommended, especially if you’re already getting hit by spam registrations), the additional step that a bot would need to go through of registering for a site, and then logging in before it is able to register for an event means that you are safeguarding your events against a potential attack by a script. O benefício disso ao usar o reCAPTCHA é que há várias opções além do reCAPTCHA em que os registros de usuários devem verificar que eles não são um bot respondendo a perguntas definidas pelo administrador como "qual cor é o céu" ou "que é dois mais quatro", ao contrário de tentar decifrar uma imagem CAPTCHA difícil de leitura.
Event Espresso runs sanitization and data validation checks on all information that is stored in the database. This means that anything one of these scripts injects gets cleaned before being stored in the database, which, in turn, means that none of the data that gets dumped your system will be likely to cause any real damage to your site or expose any hidden passwords or personal information. However, dealing with a site that has been hit by thousands of fake user registrations can be tedious and time-consuming. Protect yourself, and your valuable time, by checking with your host about whether mod_security is enabled. If you are seeing registrations to your events that are obviously fake, take one of the precautions mentioned above and save yourself a lot of headache.
Para mais informações, vá ao documento de suporte para anti-spam e reCAPTCHA.