2022-01-30 16:57:25 (edited by sudarshan-chakra 2022-01-30 16:59:18)

hi,
I was searching a free website visiter counter.
I did google, but no luck. all were putting back links of there website and the count number  was in graphical.
so it was not good.
any one here knows about any website visitor counter?
or can you create me a visitor counter based in php and mysql db?
thanks!

2022-01-30 17:49:35

there is a free website counter.
it's the website counter that you will write on your own.
please learn and try on your own, rather than finding shortcuts.

if you like this post, please thum it up!
if you like to see my projects, feel free to check out my github
if you want to contact me, you can do here by skype. or you can follow me on twitter: @bhanuponguru
discord: bhanu#7882

2022-01-30 18:17:12

Man visitor counters are so 2000s. But yeah this kind of thing is pretty easy to do in PHP, although I guess it gets more complicated if you don't want people to be able to hammer the server with requests to artificially inflate the number.

2022-01-30 21:59:57

Never mind that.  Good luck filtering out search engine bots.  You'll need it.

My Blog
Twitter: @ajhicks1992

2022-01-31 00:01:56

@4, couldn't you just disable them by using robots.txt? Or do modern search engine bots ignore that?

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.
My Github

2022-01-31 00:40:09

@5
The problem is that a visitor counter has to load on every page in order to work.

This is probably possible by inspecting some headers or doing it via JavaScript but robots.txt only works to exclude visiting pages.  Sure you could exclude your entire site but then no one can search for it because nothing will crawl.  Php by itself is likely not enough, unless there is a separate set of headers or something that can be used to reliably distinguish that it's a search engine.  Probably something filtering on user-agent, perhaps.

My Blog
Twitter: @ajhicks1992

2022-01-31 02:45:42

@6, ah, okay, makes sense.

"On two occasions I have been asked [by members of Parliament!]: 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out ?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question."    — Charles Babbage.
My Github

2022-02-01 19:32:22

@2: Ouch. That was a bit over the top.

-----
YouTube
GitHub
Discord: @tunmi13#1880

2022-02-02 03:14:49

@2:
Alright. I will go and make a website visitor counter which is accurate, has features to block search engine bots and DDOS attacks, etc etc, bla bla, seriously, this obsession of some people that you need to program everything yourself is not going to get you anywhere. There's a good reason people don't do that. Everything is already figured out, and once you get into professional programming, you can't just throw together a game in 15 minutes.

2022-02-02 16:30:44

@8 and @9
sorry lol, i thought he was asking just how to make a symple counter that wood just put the visit count in a mysql db. that's more easy to make it your self right?
sorry lol

if you like this post, please thum it up!
if you like to see my projects, feel free to check out my github
if you want to contact me, you can do here by skype. or you can follow me on twitter: @bhanuponguru
discord: bhanu#7882

2022-02-02 18:19:22

No, it's not.  The problem is knowing when it's a person visiting.  This only worked in like the 90s.  Now you might as well just have a random number there if you do this because most of your visitors for smaller sites are robots.

My Blog
Twitter: @ajhicks1992

2022-02-02 18:24:18

@11
oh yeah, i thought @1 is asking that

if you like this post, please thum it up!
if you like to see my projects, feel free to check out my github
if you want to contact me, you can do here by skype. or you can follow me on twitter: @bhanuponguru
discord: bhanu#7882