Skip to:

How to filter private messages for duplicates/spam

  • pixieblitz


    Hi! I have a vague idea of what I’d like to do, but I’m not sure how to write the code. If anyone could help me out, I would really appreciate it!

    I want to check the BP private message content before it’s sent to compare it to the previously sent message by that user. If it’s identical, I want to automatically notify the site admin, and possibly mark the user as spam. I know long term this might have false positives, but right now we’re having a serious problem with spam users sending out identical messages requesting to be contacted privately via email.


Viewing 3 replies - 1 through 3 (of 3 total)
  • That’s an interesting idea. What about using the Akismet anti-spam service to check the content of the message?

    I’ve also had bots send spam messages via private messaging, and it’s a pain once it gets started.



    I thought Askimet was just for comments – can you also configure it for private messages? I do have it set up and running right now, along with Wordfence, a reCaptcha V2 on registration form (and for bbPress), and a BuddyPress Private Message Rate Limiter.

    Right now I’m using these plugins:
    – Askimet
    – Wordfence
    – Advanced noCaptcha & invisible Captcha (On registration form)
    – Anti-Spam by CleanTalk
    – BuddyPress Private Message Rate Limiter

    It helps, but apparently not enough – just had a user sign up last night, receive a spam message, and request to have their account deleted this morning. It’s obviously frustrating, so if Askimet could be doing something extra that I just haven’t configured it for, that would be great…

    But I’m not sure how it could even successfully flag the messages based on content? Some are very bland “Hi Dear, I like you profile and would love to talk, please contact me privately via e-mail at xxxxxxxx ” Which don’t seem that different from legitimate messages, except that they’re being sent out en masse from users with profiles that say they’re in US, but with IP’s in Africa, etc.

    Does anyone know if these same bots would also send out mass friend requests? I remember seeing a mention of restricting private messaging to friends, which might be my next step… But I don’t want to implement an additional hurdle for users if the bots would also just abuse that. 🙁

    Sorry for the long post, but thanks for any help!



    Hello, I use the plugin bp-messaging-control plugin so that no more than 20 messages can be sent per day which can help. You can configure it so that no more than x messages can be sent per day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar