WordPress provides you possibility to spam, hold or block comments based on words from a predefined list in your admin area dashboard. In this lesson you will learn how to create this list for automatically blocking and spamming bad comments on your website.
Login to your WordPress admin area dashboard and navigate to Settings -> Discussions page. There are two sections:
- Comment Moderation: This section allows you to create a list of words. If a comment contains any of the words in its content, name, URL, e-mail, or IP, it will be held for moderation.
- Comment Blacklist: This section allows you to create a list of words to black list bad comments on your website. When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam.
You can also create a list of words for blocking bad comments on your WordPress site. WU – Block comments is a WordPress plugin that allows you to block comments based on words of a predefined list.
As shown in the given screenshot, instead of spamming or holding comment in moderation queue, this plugin displays an error message.