Opened 16 years ago
Closed 16 years ago
#10861 closed (invalid)
Comments should record User-Agent
Reported by: | hanksims | Owned by: | nobody |
---|---|---|---|
Component: | contrib.comments | Version: | 1.0 |
Severity: | Keywords: | comment spam akismet | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
django.contrib.comments records the remote IP address of a commenter; perhaps it should record the commenter's User-Agent as well.
Djangonauts can make use of the two big anti-comment-spam services -- Akismet and Typepad -- without too much trouble. However, they will have trouble contributing back to those services if they are using contrib.comments. Both services require flagged spam submissions to include the User-Agent of the spammer.
See "Comment Check" and "Submit Spam" in the Akismet API docs -- http://akismet.com/development/api/.
So I can check comments on my site for spam as they come in with Typepad, because I'll have access to the submitter's IP and User-Agent in the request object. But if a bit of spam makes it past Typepad, I can't notify Typepad of it because contrib.comments hasn't recorded the commenter's User-Agent.
You can already do this by supplying your own comment model, if that suits your needs.