How to Clean Your Child Site of Spam Comments

Clean Your Child Site of Spam Comments

If you have a child site which has post content and comments enabled, it is a fact of life that you will inevitably deal with spam comments.

Luckily, there are a number of ways to deal with spam. Some of the plugin options include Akismet and  Antispam Bee.

Antispam Bee

Antispam Bee will add a setting section under Settings > Antispam Bee

You can find more information about Antispam Bee on their docs. There is a bulk setting key for Antispam Bee, which also means the number of days until existing spam is deleted can be easily set, using the MainWP Bulk Setting Manager extension.

WP Optimize

You can bulk delete comments flagged as spam using a plugin like WP Optimize on the child site. Once the plugin has been installed, go to WP Optimize > Database

To run the optimization to delete spam comments and comments that have been trashed.

MainWP Extensions

MainWP also has the comments extension, where you can moderate comments on all connected child sites. You can easily mark comments as spam from the extensions settings.

The maintenance extension from MainWP is another easy way to bulk delete spam comments and trashed comments on child sites.

Advanced Database Cleaner

Another plugin option for bulk deleting spam and trashed comments is Advanced Database Cleaner.

Once the plugin has been installed and activated on the child site, go to the WP DB Cleaner admin menu;

 

 

Select spam comments and trash comments, then the clean button, and click apply.

Those same settings can be applied using this bulk settings key to clean spam and trash comments, using the Advanced Database Cleaner plugin.

WP-CLI command

You can also delete all comments marked as spam using a WP-CLI command;

wp comment delete $(wp comment list --status=spam --format=ids)

A mix of these options will help in keeping your child site clean of spam comments.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay Connected with MainWP

Sign up here to receive latest MainWP News and Notifications

Get Started With MainWP Today!

Stop letting your sites manage you and start managing your sites.