Click here to Skip to main content
15,883,623 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I placed a hit counter on my home page. It seems to get lots of hits. Is this mostly because of bots?

What I have tried:

I have a hit counter on another page which doesn't get many hits.
Posted
Updated 14-Sep-22 4:27am

It could be that your hit counter registers every time you run the web page locally from your development environment also?

Normally, hit counters shows more information on the analysis page - maybe look there for more information.
 
Share this answer
 
Comments
BobbyStrain 12-Sep-22 15:59pm    
I's just code to increment a counter each time the page is loaded.
Where do you store the value of the counter?
 
Share this answer
 
Comments
BobbyStrain 14-Sep-22 12:10pm    
I store it in a text file on the server. The file is in a public folder. I have another page with a counter that is accessed from the home page. The counter value is reasonable at what I expect.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900