Re:Show HN: Insert a page view counter in your README
by atum47 on Monday June 28, 2021 @01:57PM
(#27665191)
Na, I made this one to be simple. That's why I ditched database and everything else. The thread issue I think you can cross data with the server logs to see how many requests were made vs the number on the counter.
Re:Show HN: Insert a page view counter in your README
by atum47 on Sunday June 27, 2021 @07:38PM
(#27656505)
Hi everyone, I was curious to see how many times my GitHub profile page was visited so I made a counter for it. Since I made it, I've decided to share. Thanks.
Re:Show HN: Insert a page view counter in your README
by atum47 on Monday June 28, 2021 @08:17AM
(#27660872)
Thank you. I remember this being super popular in my blogging times (this and third party comments system) but when I needed one I didn't find any. So before bed yesterday I wrote one. Glad you liked it.
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.
An alternative with the same flaw, https://komarev.com/ghpvc/?username={github_username}&label=...
For true serverless, turn off your PC, laptop and phone and go for a walk in nature.
It is a dynamic image generator written in PHP that increments the counter it renders. It runs on a PHP web server. Its not serverless.
https://imgur.com/7h5uFoY
There is a reason, why such things aren't this simple.
the person spamming the counter war trying to corrupt the counter.txt file and reset the counter.