Reject Comments Based on Author Email

I know that I can’t guarantee emails are valid without signups, but I noticed a problematic user wanting to troll was using email addresses.

How might I maintain a blacklist of such domains for comment authors? Specifically, how might I reject comments immediately if such a domain is used, notifying the user as such?

A wp_die(‘you must use a real email’); will likely do the trick, but which filter/when should the check be made?

Read more here:: Reject Comments Based on Author Email

Leave a Reply

Your email address will not be published. Required fields are marked *