WordPress.org

Ready to get started?Download WordPress

Forums

How to delete LOTS of pending comments (3 posts)

  1. kneilson
    Member
    Posted 8 months 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 8 months 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
    Volunteer Moderator
    Posted 8 months ago #

Reply

You must log in to post.

About this Topic