Code

Opened 5 years ago

Closed 5 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: UI/UX:

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.

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by ubernostrum

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.