Token in image to prevent comment spamming
-
I am of course annoyed by (automatic) comment spamming on my blog, like everybody else. Personally I wouldn’t want to require my readers to register to comment on my posts.
Other solutions to prevent comment spamming exist that are preferable to user registration, I think. I want to put forward a request for a feature in WordPress that uses a token in the comment form. I have seen this mechanism used in user registration processes and on a discussion forum for posting messages.
The concept is this:- When displaying the form for posting a comment, automatically generate and display an image (f.ex. using the gd library in php) with a 5 digit code.
- Add an input field to the form where the user must input the 5 digit code.
- In the script processing the posted form, match the user input to the generated token and if they match, the comment is accepted and posted on the weblog.
Some distortion technique can be applied to the image to complicate automatic processing of the code from the image.
I think this feature adds a modest load on the user that wants to add comments to your blog – he doesn’t need to register and allows for complete anonymity if that is preferred.
Please post any questions and I will happily try to elaborate. ??
- The topic ‘Token in image to prevent comment spamming’ is closed to new replies.