[PATCH v2] Implement spamming mitigations for comments

Lukas Fleischer lfleischer at archlinux.org
Sun Jun 30 12:56:32 UTC 2019


On Sun, 30 Jun 2019 at 08:45:36, Jelle van der Waa wrote:
> From: Jelle van der Waa <jelle at vdwaa.nl>
> 
> Add a hidden input text field named 'website' which is hidden by CSS to
> not show up for normal users. Automated bots try to fill in all text
> fields, especially 'required' fields such as a 'website' when spamming a
> webform. When a comment is posted with the 'website' field filled in
> ignore it, so it seems that the submission is succesful.
> 
> Signed-off-by: Jelle van der Waa <jelle at vdwaa.nl>
> ---
>  web/html/css/aurweb.css           | 4 ++++
>  web/html/pkgbase.php              | 3 ++-
>  web/template/pkg_comment_form.php | 1 +
>  3 files changed, 7 insertions(+), 1 deletion(-)
> 

Thanks!

I added this to our live setup. Let's see whether it actually reduces
the amount of spam.


More information about the aur-dev mailing list