django-machina icon indicating copy to clipboard operation
django-machina copied to clipboard

Add a way to prevent users to submit too many posts in a given period

Open ellmetha opened this issue 8 years ago • 4 comments

Should we add a way to prevent users to submit too many posts in a given period?

ellmetha avatar Mar 20 '16 20:03 ellmetha

It would certainly be helpful against spamming and (unintended) repetitive submission.

ambedoz avatar Jul 13 '16 13:07 ambedoz

Probably, this could be achieved by having CAPTCHA checked during Post/Topic creation.

Toshakins avatar Aug 21 '17 11:08 Toshakins

ping @ellmetha Perhaps just adding a reCAPTCHA field? I haven't taken a look at the forms (since I'm just taking a look at this); is there a way we can customize the form for submitting a post?

In general, if there's a created attribute in the "posts" model, then it's possible to do a simple query and allow for it.

Andrew-Chen-Wang avatar Jul 24 '20 05:07 Andrew-Chen-Wang

I have done this with


@receiver(post_save, sender=Post)
def identify_spam(sender, instance, **kwargs):
    ## search database for author activity and post similarity, if suspicious,... 
    if spam:
        instance.delete()

BoPeng avatar Apr 21 '21 17:04 BoPeng