ihucos / counter.dev

Web Analytics made simple
https://counter.dev
GNU Affero General Public License v3.0
902 stars 39 forks source link

Bots recognition #50

Open brokul-dev opened 2 years ago

brokul-dev commented 2 years ago

Hi! I tested it with the lighthouse and it seems that there is no bots recognition implemented. Every test made with this tool increments the visits counter. Would it be possible to ignore bots' track requests?

ihucos commented 2 years ago

Hello,

we use this external library for bot recognition. https://github.com/avct/uasurfer Things not catched by it we just hard code there in the code somewhere. Do you have the complete user agent of a bot you would like to block list?

Thanks

brokul-dev commented 2 years ago

I see. I've found the list of user agents used by the Google Lighthouse: https://developers.whatismybrowser.com/useragents/explore/software_name/google-lighthouse/