I've been having problems with a spammer recently and created a access rule to block the email addresses that the spammer always uses in his comments that he posts.

The trouble is the comment module doesn't check the address rules to see if the email address is allowed.

This patch fixes that.

CommentFileSizeAuthor
email_block.patch733 bytesjaredwiltshire

Comments

doq’s picture

Yes, this would be a nice fix for people who allow anonymous users postings/comments.

jaredwiltshire’s picture

Sooo.. Whats the go with this?

drumm’s picture

Version: 5.1 » 7.x-dev
Category: bug » feature
Status: Needs review » Needs work

This change would make the UI inaccurate as-is, and the various help texts need to note that the access rules do not just affect the user accounts.

This is a feature request, and should be developed against the current development version for features.

tylor’s picture

Status: Needs work » Closed (won't fix)

Marking as won't fix:
* Drupal 7 API has changed drupal_is_denied() to just accept IP addresses
* IPs are blocked on bootstrap
* Marking as won't fix as user can enter any email anyway
* This problem is moved to contrib, from CHANGELOG.txt in D7:

- Refactored the "access rules" component of user module:
* The user module now provides a simple interface for blocking single
IP addresses. The previous functionality in the user module for restricting
certain e-mail addresses and usernames is now available as a contributed module.
Further, IP address range blocking is no longer supported and should be
implemented at the operating system level.