• This is crazy. I keep getting this poker spammer that shows up as a comment immediately when i make a new topic. It happens each and everytime and it seems to show up with the new post with a random nonsense comment.
    You can see it here: https://www.zdgaming.com/home/index.php?p=7#comments
    That showed up the very moment I made the comment and I’ve tried the above hacks as well as added that little php addition in another thread to keep the wp-comments-post.php file being accessed directly.
    This user is NOT in my users list. Comments are turned off and this is a BRAND NEW install. So what is this and how do I kill this?
    I have the hacks by Wellard to require registration and valid email when registering. I do not get it.
    I am getting very turned off from WordPress right now because this is nonsense. Registered users only posting and the like should already be options for wordpress. Help.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Check the database to make sure the option is really turned off. I read in another post that it doesn’t update the database when you turn comments off.

    Thread Starter zerodamage

    (@zerodamage)

    where in the database would I be looking for this? I am learning as I go here and I greatly appreciate the help so far. I def hope 1.3 of WP fixes a lot of this.

    Moderator James Huff

    (@macmanx)

    Zerodamage, along with the two links provided, you can also do a search here for “comment spam”. No one has hacked your blog, it’s just the same thing that each and every one of us face each and every day.

    Thread Starter zerodamage

    (@zerodamage)

    I just find it odd that this thing is there the moment my post is made. It’s not like the comment shows up 10 minutes later, it is immediately there along with my post with a different IP address each time.
    If someone could tell me what to look for in the database, i will check.

    It was probably because your blog, like tens of thousands, pings an Update Service when you post.
    The spammers probably see that and hit you.
    You could turn that off – update services – but then you’ll forever languish at the bottom of blogrolls – if you mind about that sort of thing.
    Best thing you can do is install the plugins.
    I actually don’t think 1.3 or any other version will defeat the spammers – after all, it’s a business to them and they too can download WP and see how it works, what to do and how to do it.
    It’s a fact of internet life…..

    Thread Starter zerodamage

    (@zerodamage)

    I could see that being an issue with the ping thing on if those plugins were not installed that required registration. Even more is that I’ve turned OFF comments all together on some of the posts and this thing still shows up.

    You are probably right – I post 3 times a day sometimes and I’ve yet to have the spammers target me …. wonder why and how they do pick their targets ?
    (Not that I’m complaining !)

    that’s some cool code.

    I think I would do it a little differently. Consider the 2 scenarios:
    A) Legitimate post
    1. DB Hit to make sure they can post a comment
    2. DB Hit to write the comment (output ‘success’, true, 1, whatevr)
    B) SPAM
    1. DB Hit to find out they can’t post (output ‘failure’, false, 0, etc.)
    I would put the trap in the database itself because this way the DB would only get hit once per legit/un legit comment. You could maybe make the output different based on if it was written successfully vs. the topic doesn’t exist or comments are off. Then you could continue processing as usual or show the spammer a message or redirect to your 404.
    I haven’t mucked around the code to know you can actually do that but in terms of doing DB hits I’d approach it like that…

    @anon – in short, yes, it’s not the way I would have written it either, BUT, I was trying to work within confines of the existing code. I consider the performance hit in that solution to be negligible. The reason the spam passed through is actualy because of the way the existing code is written to check for closed comments on posts. If there’s no post, nothign is returned and it fails the “closed” test, then assumes that commenting is open. A better way to write it would have been to check to see if the comment status is OPEN or not. And if it’s not open, then deny comments. That would take it back down to 1 DB hit rather than 2.
    TG

    here’s the deal…I got this comment bot thingy going on and I am clueless as to the code. I cannot fix it b/c I dont know the code where the “files” are and all that jazz….how does a web idiot like me fix it???
    -frustrated

    Moderator James Huff

    (@macmanx)

    Anon – simplest way:
    1) Login into your WP Admin area
    2) Click Templates in the top menu
    3) Scroll down until you find a text box where you can type in a file name.
    4) Enter “w-comment-post.php” Click OK
    5) Find the lines specified. Add the additional code. Click Save.
    Done
    TG

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Spammer hack my WP after 2 days?’ is closed to new replies.