Opened 10 years ago

Closed 10 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


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 --

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.

Change History (1)

comment:1 Changed 10 years ago by James Bennett

Resolution: invalid
Status: newclosed

You can already do this by supplying your own comment model, if that suits your needs.

Note: See TracTickets for help on using tickets.
Back to Top