One of the features that I am planning to add to this blog is a hit engine. That way I could capture analytics for:
These stats would be displayed in some charts in the admin backend.
While this is trivial to build (just dumping a row with a DATETIME column that references a post's ID in the Blog Posts table would be enough for a start) there are certain realities that make this a complicated idea to build. The biggest obstacle is bot activity. The Internet is overrun by bots. Yes, BOTS! Bots do much of page hits online and if this activity is not filtered out it could lead to the rapid growth of the Blog Hits counter. To filter out bots is a foolhardy exercise. While simply filtering out every bot that has the word 'Bot' in its User Agent string would work yet that is depending too much on a client's identification. A bot maker could simply call their creation any name without attaching the word 'Bot' to it.
What about Whitelisting? This is too much work. Blacklisting too would be a lot of work. IP address bans could potentially block legitimate users from this site. Plus we now have the reality that some bots cycle through different IP addresses. It's all pointless.
But this idea is still on the drawing board. Let's see what it will be after letting incubation runs its course.
WORDCOUNT: 278 words.