News for hackers. Stuff that matters.
Re:Show HN: Insert a page view counter in your README by atum47 on Monday June 28, 2021 @03:11PM (#27666348)
Well, someone did spam my counter:

https://imgur.com/7h5uFoY

Re:Show HN: Insert a page view counter in your README by atum47 on Monday June 28, 2021 @03:26PM (#27666588)
Re:Show HN: Insert a page view counter in your README by atum47 on Monday June 28, 2021 @03:31PM (#27666684)
So, if I remove the hits from the spammer, the counter number is at 15585, so I'll just paste it in the counter.txt
Re:Show HN: Insert a page view counter in your README by oltdaniel on Monday June 28, 2021 @07:57PM (#27669880)
An counter not counting unique visitors or has an rate-limit is the easiest target for anyone knowing how to run an `wrk` command.

There is a reason, why such things aren't this simple.

Re:Show HN: Insert a page view counter in your README by atum47 on Monday June 28, 2021 @09:06PM (#27670441)
this is not a visitor tracker, just a hit counter (page view). I did start writing a parser for the server logs to have a more robust statistics for my website, but there are plenty of good options out there, awstats for instance. this is not it.

the person spamming the counter war trying to corrupt the counter.txt file and reset the counter.