Guests online

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
kronos1
Registered User
Posts: 596
Joined: Tue Aug 23, 2011 1:46 pm

Guests online

Post by kronos1 »

Is there anyway to stop guests from being online as I have 5 members online and 4000+ guests online which is slowing the forum down.
User avatar
KevC
Support Team Member
Support Team Member
Posts: 72821
Joined: Fri Jun 04, 2004 10:44 am
Location: Oxford, UK

Re: Guests online

Post by KevC »

You don't want to stop all of them because then you and your members wouldn't be able to get on the site because you're also a guest until you hit login.

Lots of chat about this recently
viewtopic.php?p=16063945#p16063945
-:|:- Support Request Template -:|:-
Image
"Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb"
kronos1
Registered User
Posts: 596
Joined: Tue Aug 23, 2011 1:46 pm

Re: Guests online

Post by kronos1 »

I have added the Hi Fi Kabin .htaccess file but it makes no difference, there are still over 4000 guest online.
SQLnovice
Registered User
Posts: 208
Joined: Thu Oct 10, 2019 5:03 am

Re: Guests online

Post by SQLnovice »

Probably a lot of A.I. scrapers stealing your forum's information.

What's the time period you have for the WhoisOnline? I'd recommend 90, so you can get a history on what the guests are.

Then, check your host's logs. My host has an analytic reporting function that shows me what countries and IPs are the top offenders, so to speak. If you're seeing a lot of traffic from the Russian Federation, China, Iran, Iraq, Albania, Brazil, etc, that's what we're all seeing too. Also, Facebook bot, their meta-external agent, and Microsoft BingBot MSNbot have just gone crazy lately. They apparently don't respect robots.txt anymore. Identifying and denying their bots in the htaccess environment variable is the next step (something you can also do on Cloudflare):

Code: Select all

BrowserMatchNoCase "bingbot" bad_bot
BrowserMatchNoCase "meta-externalagent" bad_bot
BrowserMatchNoCase "meta-externalagent/1.1" bad_bot
Order Deny,Allow
Deny from env=bad_bot
You could use Cloudflare's free WAF rules to block countries before they get to your site and/or you can add them to your .htaccess file. If you want to go that route, see this topic
viewtopic.php?p=16061083#p16061083
kronos1
Registered User
Posts: 596
Joined: Tue Aug 23, 2011 1:46 pm

Re: Guests online

Post by kronos1 »

SQLnovice wrote: Fri May 02, 2025 5:33 am You could use Cloudflare's free WAF rules to block countries before they get to your site and/or you can add them to your .htaccess file. If you want to go that route, see this topic
viewtopic.php?p=16061083#p16061083
I have signed up for the free Cloudflare and diverted my DNS names and this seems to have stopped the majority of the bots. I have imgur installed and not sure if this is a coincidence but I can no longer upload pictures using imgur.
SQLnovice
Registered User
Posts: 208
Joined: Thu Oct 10, 2019 5:03 am

Re: Guests online

Post by SQLnovice »

Dunno. You must have set something up out of the norm or have We're Under Attack enabled? We have imgur images on our site too and they're unaffected. I suppose maybe try this.

Find out what Imgur's AS number is or are. Then on CF's side, turn on one of their custom allow traffic templates. Put Imgur's ASN number(s) in as the equal to AS number rule (using the OR option for multiple rules) and set the rule to be the first WAF rule and to 'skip' all other subsequent WAF rules if the traffic matches this 'allowed traffic' firewall rule.
kronos1
Registered User
Posts: 596
Joined: Tue Aug 23, 2011 1:46 pm

Re: Guests online

Post by kronos1 »

SQLnovice wrote: Mon May 05, 2025 3:48 pm Dunno. You must have set something up out of the norm or have We're Under Attack enabled? We have imgur images on our site too and they're unaffected. I suppose maybe try this.

Find out what Imgur's AS number is or are. Then on CF's side, turn on one of their custom allow traffic templates. Put Imgur's ASN number(s) in as the equal to AS number rule (using the OR option for multiple rules) and set the rule to be the first WAF rule and to 'skip' all other subsequent WAF rules if the traffic matches this 'allowed traffic' firewall rule.
Under attack is not enabled. I have set up a rule like you suggested but sadly it is still not working, hope I have the correct ASN?

A also notice the the imgur images that were upload before Cloudflare was used only show for about 2 seconds and then they disappear along with the avatars.
Untitled.jpg
You do not have the required permissions to view the files attached to this post.
SQLnovice
Registered User
Posts: 208
Joined: Thu Oct 10, 2019 5:03 am

Re: Guests online

Post by SQLnovice »

According to Google AI, it's 56252. You might wish to change the Allow rule name from Imgur to something generic, like 'Allow,' so it's labeled better. Ours has all the explicit allowed traffic for other AS numbers, like GoogleBot 15169 and user-agent Googlebot-Image, if you're wanting them to get through too.

On topic though...
With CF blocking most of everything bad via WAF rules, we still have our .htaccess in place with bad_bots, country code and IP blocks. Plus, we use SpIdErPiGgY's honeypot-blackhole modification too. All these systems work well together, but we prefer to identify stuff that .htaccess or honeypot are blocking (finding) and creating new CF WAF content to block that stuff before it hits our Web host (i.e. our .htaccess). That eliminates a lot of requests that won't even get 403 errors from our host.
User avatar
dontcoz
Registered User
Posts: 519
Joined: Mon Sep 29, 2008 9:49 pm
Location: Vancouver, BC

Re: Guests online

Post by dontcoz »

Check this topic viewtopic.php?t=2662519
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6836
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Guests online

Post by thecoalman »

There is already multiple topics on his issue so I'm closing this one.
“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 “[3.3.x] Support Forum”