Bot Attack - IP Ban Thread

News from the site
Important stuff goes here

IP Ban Thread

Post by Stoker »

How did you include it?

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.

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: -

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....

Bot Attack - IP Ban Thread

Post by Steve »

Don't block them country's just add a tariff

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

Bot Attack - IP Ban Thread

Post by Stoker »

I did it the same way @SpIdErPiGgY
Just not as much

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.

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.

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: /