# Spam protection from three day old account?

**URL:** <https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409>\
**Category:** Product Support\
**Created:** [June 8, 2016, 2:10am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409 "2016-06-08T02:10:38Z")\
**Posts on this page:** 12\
**Page:** 1

## AI-generated summary

In a Support thread titled 'Spam protection from three day old account?', [peternlewis](/t/-/45409/1) reported a security breach where a dormant account created three days prior posted ten pornographic topics, circumventing the current 'max topics in first day' limit. To prevent this, [peternlewis](/t/-/45409/1) suggested modifying the flag to trigger the 24-hour timer only after the user makes their first post, a proposal supported by [codinghorror](/t/-/45409/4) and implemented by [neil](/t/-/45409/9). The group also clarified that independent start dates for topics and replies should be maintained to avoid loopholes where users post to old threads [peternlewis](/t/-/45409/6). Additionally, [sam](/t/-/45409/2) and [jomaxro](/t/-/45409/3) discussed the incident; [codinghorror](/t/-/45409/7) strongly advised [peternlewis](/t/-/45409/1) to install the Akismet plugin, which [claas](/t/-/45409/8) noted is available via a GitHub link. Finally, [peternlewis](/t/-/45409/12) queried if the first post counts towards the daily limit, prompting [neil](/t/-/45409/9) and [codinghorror](/t/-/45409/11) to update the documentation for clarity regarding the 24-hour period starting from the first post.

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [June 8, 2016, 2:10am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/1 "2016-06-08T02:10:38Z")

</div>

So my site was just hit with a porn spammer account that posted ten new topics, all with content like:

```
<a href="http://robtopol.in/n/1-Scarlett+Johansson+nude.html"><img src="http://robtopol.in/n/index.gif" /></a>

```

The account was created three days ago, and then presumably left dormant to avoid the “max topics in first day”.

Might I suggest that flag actually be “max topics in first day that user posts any topic”? Same for the _max replies in first day_ flag.

Also, does anyone have any recommendations for settings that might have further limited this intrusion without negatively impacting real users (many of whom tend to be new users and light visitors, and thus not particularly trusted). 3 new topics in the first day you post any topic seems quite sufficient.

Thanks.

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [June 8, 2016, 2:19am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/2 "2016-06-08T02:19:15Z")

</div>

I just saw a flood of them on a few of our sites as well, are you running akismet? Did it not catch it?

---

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [June 8, 2016, 2:28am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/3 "2016-06-08T02:28:16Z")

</div>

We saw this as well, and no, they weren’t caught by akismet. Not sure when they created there account though, after the third post we blocked them while we investigated. 1 post was deleted by a moderator almost immediately, the other 2 posts were flagged and subsequently deleted. I then went in and deleted the user, also blocking email and IP.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [June 8, 2016, 2:56am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/4 "2016-06-08T02:56:54Z")

</div>

> [@peternlewis](#):
>
> Might I suggest that flag actually be “max topics in first day that user posts any topic”? Same for the max replies in first day flag

Yeah that would be better, can you add that to your list @neil? “first day” timer should start after the first topic / reply is posted. It is a strengthening of the first day user limits.

---

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [June 8, 2016, 3:06am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/5 "2016-06-08T03:06:46Z")

</div>

I’m not running akismet whatever that is, no.

---

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [June 8, 2016, 3:08am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/6 "2016-06-08T03:08:09Z")

</div>

> [@codinghorror](#):
>
> Yeah that would be better, can you add that to your list @neil? “first day” timer should start after the first topic / reply is posted. It is a strengthening of the first day user limits.

I’d suggest keeping independent start dates for each, that way they could not get clever and post a reply to some old topic that might go unnoticed before creating a bunch of new spam topics.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [June 8, 2016, 3:31am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/7 "2016-06-08T03:31:25Z")

</div>

Oh geez if you are not running the Akismet plugin you are cruisin’ for a bruisin’. _Strongly_ advise that you run it otherwise you are super vulnerable to human spammers, of which there are tons these days.

---

<div class="post-metadata">

**Author:** ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)\
**Post date:** [June 9, 2016, 2:39pm UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/8 "2016-06-09T14:39:33Z")

</div>

PS: The plugin can be found here: [GitHub - discourse/discourse-akismet: give spam a whoopin · GitHub](https://github.com/discourse/discourse-akismet/)

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [June 20, 2016, 10:26pm UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/9 "2016-06-20T22:26:28Z")

</div>

I made this change today, although the descriptions of `max_topics_in_first_day` and `max_replies_in_first_day` still need to be updated now that they’re a bit more complicated.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [June 20, 2016, 11:22pm UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/11 "2016-06-20T23:22:58Z")

</div>

OK I updated copy as follows, hopefully this keeps it clear:

`max_topics_in_first_day: "The maximum number of topics a user is allowed to create in the 24 hour period after creating their first post"`  
`max_replies_in_first_day: "The maximum number of replies a user is allowed to create in the 24 hour period after creating their first post"`

---

<div class="post-metadata">

**Author:** ![peternlewis](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/peternlewis/32/108888_2.png) [@peternlewis](https://meta.discourse.org/u/peternlewis)\
**Post date:** [June 21, 2016, 1:21am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/12 "2016-06-21T01:21:01Z")

</div>

Does the number include the first post? If so, I would think the text should be “24 hour period starting when they create”, or briefer “24 hour period from creating” - after implies the first one would not be included.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [April 27, 2017, 7:21am UTC](https://meta.discourse.org/t/spam-protection-from-three-day-old-account/45409/13 "2017-04-27T07:21:00Z")

</div>

Closed on April 27, 2017, 7:21am UTC


