Steem: Use Leaky Bucket to Prevent Comment SpammingsteemCreated with Sketch.

in #utopian-io7 years ago (edited)

Screen Shot 2017-11-10 at 11.16.49 PM.png

Background

Steem/Steemit has 20-second limit for comment: if you post a comment, you will not be able to post another comment in 20 seconds. I believe this feature is used to prevent comment spamming.

The Problem

The 20-second limit cannot prevent bot spamming. If a bot posts one comment per minute, it still can post 1,440 comments in each day.

On the other hand, it's human who suffer from the 20-second limit. Sometimes, I can type a comment within 10 seconds. Then, I will have to wait for another 10 seconds before I can post the comment.

Bot won't suffer from the 20-second limit. Therefore, the 20-second limit for comment is not a good feature to prevent spamming.

The Solution

We can use Leaky Bucket to solve the problem. Using Leaky Bucket, we can set long term interval, burst interval, and burst size.

For example, we can set :

  • burst interval = 1 second
  • burst size = 30 comments
  • long term interval = 10 minutes

Using the above setting, we can write 30 comments at the burst speed of 1 comment per second. But after 30 burst comments are reached, long term interval kick in. The user must wait 10 minutes to send another comment. In each day, the user cannot post more than 24*6+30=174 comments in each day.

This is only an example. The parameters can be adjusted so ordinary users won't need to suffer and spammer cannot send too many comment in each day.



Open Source Contribution posted via Utopian.io

Sort:  

Hi @nationalpark Thanks for your Contribution. It can't be approved yet. Can you remove the random picture and change it to something that pertinent on the post? if you're done please reply to this comment so I can apply your post for approval.
How to edit? just simply click the 3 dots at the right top corner of your post.

edit screen

You can contact us on Discord.
[utopian-moderator]

Removed the original photo and added screenshot

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @nationalpark I am @utopian-io. I have just super-voted you at 5.6% Power!

Suggestions https://utopian.io/rules

  • Your contribution is less informative than others in this category.

Achievements

  • Votes on this contribution are going well. Nice!
  • This is your first accepted contribution here in Utopian. Welcome!
    Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

good idea! resteemed!

Thoughtful adjustment

恭喜你!您的这篇文章入选 @justyy 今日榜单 【优秀被错过的文章】, 请继续努力!

Congratulations! This post has been selected by @justyy as today's 【Good Posts You May Miss】, Steem On!

Coin Marketplace

STEEM 0.15
TRX 0.16
JST 0.028
BTC 67779.88
ETH 2396.01
USDT 1.00
SBD 2.32