WordPress.org

Ready to get started?Download WordPress

Forums

Clobber spam users
be carefull (4 posts)

1 star
  1. mvaginger
    Member
    Posted 1 year ago #

    without any warning it just deleted my whole DB all posts !!
    too much stress

  2. Corey Salzano
    Member
    Plugin Author

    Posted 1 year ago #

    mvaginger:

    I am surprised to hear that you lost some posts because of my plugin. I have used this plugin to delete 30 to 50 posts a day for at least a month. Before releasing this plugin for others to download, I clicked the Clobber button for weeks and sent hundreds of posts to the Trash (instead of deleting without preserving a copy in the Trash) so I could examine exactly which ones were deleted during each test. I have spent a handful of hours designing this administrative page to save me time each and every day. (UPDATE: I was wrong about this: I tried clicking the button without checking any of the users at all, and no posts were deleted.) The administration page for this plugin creates a list of user IDs based on the check boxes you check. Then, those user IDs are used to delete posts with this code:

    $posts = get_posts( array(
    	'author' => $user_id,
    	'posts_per_page' => -1,
    	'post_status' => array( 'publish', 'inherit', 'pending', 'private', 'future', 'draft' )
    ));
    foreach( $posts as $post ){
    	$deleted_post = wp_delete_post( $post->ID, true );
    }

    Of course, none of this means much to you since it deleted your posts. I am sorry you lost posts because of my plugin. I am going to try and find out what kind of WP installation would cause every post in your database to match this criteria. I do not know at this time.

    UPDATE: I confirmed that clicking the button without checking any users would delete all your posts, so I just published a version 0.121111 that fixes this problem. I added two layers of protection against this problem. The javascript does not submit an AJAX request, and the PHP code will not execute the delete post query without a user ID.

  3. mvaginger
    Member
    Posted 1 year ago #

    it just identified the Admin as top attributor and I believe it assumed its a spammer, but I didnt mark it to delete or anythink.
    I didnt know what to do next, I tried to click the button, nothing happned also, no notification.
    I suddenly realized the POST are GONE :(
    lots of stress, but I had a backup :)

  4. Corey Salzano
    Member
    Plugin Author

    Posted 1 year ago #

    The list of users is not screened or populated using any spam signals. The list is simply the most recent users that have submitted posts. My workflow for this plugin is this:

    1. Look at list for emails ending in @hotmail.com and spam like domains such as @solar-energy-info.com
    2. Check the spam users based on the email and post title
    3. Click the Clobber Users button

    It's simply a plugin for me to look at each day and delete 20 or 25 users that have submitted 30 or 50 posts. The good users with good posts submitted that day show up, too.

    Again, I'm sorry I ruined your day. I believe the latest update will prevent the case where it deletes every post on the site when no users are checked and the button is clicked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.