Bot Attack - IP Ban Thread

News from the site
Important stuff goes here
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

IP Ban Thread

Post by Stoker »

How did you include it?
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
SpIdErPiGgY Offline
Donator
Donator
Posts: 53
Joined: 13 Dec 2024, 08:43
Local time: 07 Sep 2025 05:54
Last active: -
Location: Erpe-Mere, Belgium
Contact:

IP Ban Thread

Post by SpIdErPiGgY »

Stoker wrote: 12 May 2025, 18:00
How did you include it?
Edit in common.php

Search:

Code: Select all

require($phpbb_root_path . 'includes/startup.' . $phpEx);
Add above:

Code: Select all

include(realpath(getenv('DOCUMENT_ROOT')) . '/blackhole/index.php');
And in my custom style, overall_footer_after.html

Code: Select all

<a rel="nofollow" style="display:none" href="https://www.phpbbextnl.be/blackhole/" title="Do NOT follow this link or you will be banned from the site!">phpBB NL Ext Vertalingen</a>
And create the blackhole folder


Image
Last edited by SpIdErPiGgY on 12 May 2025, 18:10, edited 1 time in total.
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

Bot Attack - IP Ban Thread

Post by Stoker »

That looks simple 👍
Last edited by Stoker on 13 May 2025, 06:23, edited 1 time in total.
Reason: -
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

Bot Attack - IP Ban Thread

Post by Stoker »

The following countries are blocked:
- Brazil
- China
- Indonesia
- India
- Singapore
- Vietnam
and I will continue to block if necessary....
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Steve Offline
Donator
Donator
Posts: 1,589
Joined: 04 Mar 2010, 23:10
Local time: 07 Sep 2025 04:54
Last active: -
Favourite BBCode: {
Favourite EXT: {
Location: { .

Bot Attack - IP Ban Thread

Post by Steve »

Don't block them country's just add a tariff
stokers bugs: {.23%t>
my bugs: .
User avatar
SpIdErPiGgY Offline
Donator
Donator
Posts: 53
Joined: 13 Dec 2024, 08:43
Local time: 07 Sep 2025 05:54
Last active: -
Location: Erpe-Mere, Belgium
Contact:

Bot Attack - IP Ban Thread

Post by SpIdErPiGgY »

Blocking in my Plesk firewall seems to be the best option...
Together with the 8G firewall in htaccess and Blackhole.


Image
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

Bot Attack - IP Ban Thread

Post by Stoker »

I did it the same way @SpIdErPiGgY
Just not as much
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
pxdetroit Offline
BBCoder II
BBCoder II
Posts: 45
Joined: 31 Mar 2025, 16:11
Local time: 06 Sep 2025 23:54
Last active: -
Location: Detroit, the motor city!

Bot Attack - IP Ban Thread

Post by pxdetroit »

.
I might've mentioned this before. One of my sites had a problem with spam. I used the extension "stop forum spam" for a quick solution without delving into htaccess. It works pretty well. Eventually I'd like to implement something like your solution.

Do you have multiple domains running under one hosting account? I do, and my host company tells me there's no way to separate the domains as far as server logs go. (When I view the traffic logs it's for all 10 of my sites together.) I asked them about separating out the domains into their own VPNs and the co said I'd have to do that through a different company.

I've been using the same host for 15 years at least but their services keep getting worse and worse. I seriously need a new hosting company even though it'll be a headache to migrate everything.
pxdetroit

You just got PASSED by a girl in a Freightliner.
User avatar
Stoker Offline
Site Admin
Site Admin
Posts: 4,561
Joined: 12 May 2008, 21:26
Local time: 07 Sep 2025 05:54
Last active: -
Favourite EXT: Forum Goal
Location: Denmark
Contact:

Bot Attack - IP Ban Thread

Post by Stoker »

Yes, I have multiple domains and logs for each domain.
I believe you get what you pay for. So you need to think about how much you want to pay.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Fred Rimbert Offline
Supporter
Supporter
Posts: 50
Joined: 01 Mar 2025, 05:55
Local time: 07 Sep 2025 05:54
Last active: -
Location: France, Pays de la Loire
Contact:

Bot Attack - IP Ban Thread

Post by Fred Rimbert »

A question, are you all on a self-hosting solution?
Personally I never banned any IP on my board and my server never got down.

I only have this addition to the robots.txt file

Code: Select all

###################################################################
# The Ultimate robots.txt Bot and User-Agent Blocker
# Copyright:
# https://www.phpbb.com
###################################################################

### Version Information #
###################################################
### Version: V2/2025.02
### Updated: Sat Feb 08 11:54:08 UTC+01:00
### Disallow Bad Bot: 10
###################################################
### Version Information ##

User-Agent: Claudebot
User-agent: anthropic-ai
User-Agent: ByteDance
User-agent: Bytespider
User-agent: ChatGPT-User
User-agent: GPTBot
User-Agent: FriendlyCrawler
User-agent: Google-Extended
User-agent: Omgili
User-agent: RSSingBot
User-agent: netEstate NE Crawler
Disallow: /
Post Reply