Thursday, March 28, 2019

New comment by mpol in "Google launches AMP for email"

reCAPTCHA is a terrible thing for the web, in my experience. It is user hostile. It only gets used on websites because it is easy to set up. But really, the only reason someone would use it is because it is cheap and easy. There are much better options available that are less user hostile.

Akismet is a third party service that works really well. You send data there with a HTTP POST and it will reply with a yes or no, it is spam or not spam. It is not that hard to implement. You do have to be aware that you are sending user data to that service, which you have to mention in your privacy policy.

Stop Forum Spam is a similar third party service. You send it an ip address and an email address. It will reply on both items if it is spam, together with a confidence level. Quite interesting way to reply :) It is originally intended to fight registration spam, but you can use it for comment spam or contact forms as well.

JavaScript spamfilters can be very usefull. Most spambots do a HTTP GET for a page with a form. They fill in all the fields and submit it with a HTTP POST. They don't run any JavaScript on that page. You can have honeypot and timeout fields on a form that get manipulated by JavaScript, and spambots will not validate. Works really well, and all transparent to the user. The only "risk" is that in the future spammers might start using more sophisticated spambots, like using Electron or Chromium. I implemented spamfilters like this in a WordPress plugin and it works really well for me: https://wordpress.org/plugins/la-sentinelle-antispam/



from Hacker News - New Comments: "WordPress" https://ift.tt/2UXtLD3
via IFTTT

No comments:

Post a Comment

Trump: One Year Later

Article URL: https://www.nytimes.com/2026/01/18/opinion/trump-one-year-later.html Comments URL: https://news.ycombinator.com/item?id=466712...