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.
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.
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.
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.
16 comments
[ 3.0 ms ] story [ 44.3 ms ] threadIt is a dynamic image generator written in PHP that increments the counter it renders. It runs on a PHP web server. Its not serverless.
For true serverless, turn off your PC, laptop and phone and go for a walk in nature.
An alternative with the same flaw, https://komarev.com/ghpvc/?username={github_username}&label=...
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.