Hits counter code for my website

i want code for my website to count hits my self because i dont believe in your hits counter because its suspend me 2 days ago

What is a hit https://infinityfree.net/support/hits-limit/

I would highly recommend against doing so. In order to track hits and record them, you need PHP code to capture and store the hit. And to track every hit, every HTTP request must be handled by a PHP script. Not just the main page itself, but also every image and every CSS/JS file. If your hits usage is already high, processing every hit with a PHP script would likely cause trouble with the CPU or EP limits, meaning your website would be able to handle even fewer visitors.

I’m sure it’s possible to do this with .htaccess rules and some simple PHP code, but I don’t think it’s a good idea.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.