Stopping spammers messaging.

Home Forums Legacy Support Support queries Setup issues Stopping spammers messaging.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #187783
    taerese
    Spectator
    A user created an account and sent spam messages to more than 300 members in less than 10 minutes. This is clearly not a copy and paste. It is like something executed with a software after account creation. They rush number of messages per minute to even bypass incase there is a limit set on outgoing messages per minute. Is there a way to set a limit on outgoing messages per user per hour or even down to limiting outgoing messages per minute even if they attempt to use a software to rush them? Could a captcha even have worked in this instance that the user is using software to send?
    #187799
    taerese
    Spectator
    Found some code on buddypress forum to restrict users from sending private messages to those who are not their friends. Thats the fix I use for now. You can close this tkt if there is no other suggestion. Thanks.
    #187801
    taerese
    Spectator
    This reply has been marked as private.
    #187935
    Anshuman Sahu
    Keymaster
    updated code with admin check :   add_filter( 'bp_get_send_message_button', function( $array ) { if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() )  || is_admin()) { return $array; } else { return ''; } } );
    #187950
    taerese
    Spectator
    I replaced the code with the one you provided by it didn't work. Admin couldn't contact members.
    #188009
    Anshuman Sahu
    Keymaster
    please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :  

    add_filter( 'bp_get_send_message_button', function( $array ) {

    if ( friends_check_friendship( bp_loggedin_user_id(), bp_displayed_user_id() )  || current_user_can('manage_options')) {

    return $array;

    } else {

    return '';

    }

    } );

    #188075
    taerese
    Spectator
    It works. Thanks.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Stopping spammers messaging.’ is closed to new replies.