Skip to:
Content
Pages
Categories
Search
Top
Bottom

Best way to limit friend requests to avoid spam

  • @tifire

    Participant

    One new member of our site sent friend requests to almost all other members. Even though he may not be a spammer, this did get me nervous. A spammer could just do the same and send friend requests to hundreds of members and ruin the site quickly.

    To avoid spam, I would like to limit the number of friend requests a member can send per hour. I have a couple of questions and hope someone can help:
    1) what’s the best way to get the number of friend requests a member has already sent in given period. Is there a buddypress function to return the number of friend request, or shall I do a WP database query?
    2) After getting the number, the next step is to check if this is bigger than the maxium. The function friends_action_add_friend() seems to be the one that decides if a friend request can be sent, but I didn’t find any action there. Can someone tell me if friends_action_add_friend() is the correct function to look at?

    I would like to do the same to limit the number of updates, comments posted or groups created per hour. I hope similar method can be used.

    Thanks a lot.

Viewing 6 replies - 26 through 31 (of 31 total)
  • @sooskriszta

    Participant

    @sbrajesh Yup, I can see that use case. I meant the plugin is useless for this particular purpose.

    As far as Friendship request throttling is concerned, I am about to release a plugin today which does allows site admins to limit the no. of requests sent per minute(or you can set say 30 requests per 60 mins, that flexibility lies with the site admins).

    Fantastic!

    @bphelp

    Participant

    @sbrajesh
    Your welcome sir!
    I look forward to this new plugin you will release I think you are really closing a gap that needed to be closed. By the way BP User Profile Visibility plugin rocks. Thanks once again for the awesome plugins and all the hard work you put forth, I respect you immensely!

    @funmi-omoba

    Participant

    @sbrajesh, thanks for all your great work for bp community. if there is a way to limit message a user can send aswell, let say 10 messages in 30min etc that will be great.

    Sometimes, human spam will sign up and send messages to hundreds of users.

    @bphelp

    Participant

    @funmi-omoba @sooskriszta @tifire @ubernaut @patricksaad
    Thanks to the hard work of @sbrajesh at BuddyDev we now have a solution get it here:

    BuddyPress Limit Friendship Request

    @ubernaut

    Participant

    some great plugins there thanks for sharing @sbrajesh and @bp-help

    @sooskriszta

    Participant

    Fantastic

Viewing 6 replies - 26 through 31 (of 31 total)
  • The topic ‘Best way to limit friend requests to avoid spam’ is closed to new replies.
Skip to toolbar