AppleWebKit - Preventing "Users Online" numbers skew?

Discussion of non-phpBB related topics with other phpBB.com users.
Forum rules
General Discussion is a bonus forum for discussion of non-phpBB related topics with other phpBB.com users. All site rules apply.
AndyAero95
Registered User
Posts: 30
Joined: Sat Jan 26, 2019 11:56 pm

AppleWebKit - Preventing "Users Online" numbers skew?

Post by AndyAero95 »

Is there a way to prevent AppleWebKit/537.36 from skewing the users online count number?

I previously assumed it was a Bot/Crawler/etc., yet assigning it as a Bot resulted in a complete inability for anyone to access the forum, as their browser was not being authenticated (IIRC).
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53538
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: AppleWebKit - Preventing "Users Online" numbers skew?

Post by Brf »

That is part of the user agent used by Chrome.
AndyAero95
Registered User
Posts: 30
Joined: Sat Jan 26, 2019 11:56 pm

Re: AppleWebKit - Preventing "Users Online" numbers skew?

Post by AndyAero95 »

Brf wrote: Fri Oct 11, 2024 6:51 pm That is part of the user agent used by Chrome.
I realise that now, following my previous faux-pas with assigning the URL as a Bot, and creating catastrophic results :lol:

Is there any way to prevent it skewing the "users online" count, without detrimental results to access etc.?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53538
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}

Re: AppleWebKit - Preventing "Users Online" numbers skew?

Post by Brf »

But "it" in this case is your regular users. If you are trying to identify a bot, you would have to use a different identifying word, other than "AppleWebKit". My user agent looks like
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
You would have to identify a word that is not in that string
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6335
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: AppleWebKit - Preventing "Users Online" numbers skew?

Post by thecoalman »

The short answer is no. It's either a legitimate user or a bot spoofing the user agent. If it's a bot you need to block them from accessing the site to begin with. Generally speaking this can only be accomplished using a service like Cloudflare.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison

Return to “General Discussion”