WordPress.org

Forums

How to delete LOTS of pending comments (3 posts)

  1. kneilson
    Member
    Posted 1 year ago #

    How do I delete tens of thousands of pending comments?

    Deleting them 20 at a time doesn't make sense.

    Best,
    Kevin

  2. amsgator
    Member
    Posted 1 year ago #

    The Simple Optimizer plugin has an option in the settings to delete un-approved comments. I'd give that a shot.

    http://wordpress.org/plugins/simple-optimizer/

    And then I'd add this code w/ your domain to your .htaccess file to limit spam comments

    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) http://%{REMOTE_ADDR}/$ [R=301,L]
  3. WPyogi
    Forum Moderator
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic