Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot traffic (Ahrefs crawler) not filtered out #1010

Closed
MiKatre opened this issue Feb 8, 2024 · 3 comments
Closed

Bot traffic (Ahrefs crawler) not filtered out #1010

MiKatre opened this issue Feb 8, 2024 · 3 comments

Comments

@MiKatre
Copy link

MiKatre commented Feb 8, 2024

Hi, I noticed a huge spike in views recorded by PostHog. After some digging I found it was the Ahrefs crawler crawling my website:

User agent AhrefsSiteAudit (Desktop) - Mozilla/5.0 (compatible; AhrefsSiteAudit/6.1; +http://ahrefs.com/robot/)

I open an issue because according to this question, this is where we should report missing bots.

Thanks!

@pauldambra
Copy link
Member

Hi @MiKatre,

I added a test to check that user agent string and it should have been considered a bot. You can see in the first commit here #1011

Can you share what version of posthog-js you're using and ho wyou had it configured?

Thanks

@pauldambra
Copy link
Member

I'll close this but feel free to re-open it if this is still a problem for you and you can share the details above

@MiKatre
Copy link
Author

MiKatre commented Apr 3, 2024

Thanks !
I just tried to enable PostHog User Agent Populator to make sure I gave you the correct user agent, and run a crawl with the Ahref Site Audit Tool, but the bot traffic was successfully filtered out, so I don't know what happened last time.

On the other hand, by doing that I found a bot that I am sure this time is not listed in blocked-uas.ts! :

#1112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants