|
|
Joined: Oct 2001
Posts: 213
Member
|
Member
Joined: Oct 2001
Posts: 213 |
The malfunctioning IP ban in Threads V6.4.4 is getting very old. We are constantly getting spammed from a single domain and have to ban the new user ID's on a daily basis. I have the domain in our IP ban list but that doesn't stop them from posting.
We don't want to upgrade to V6.5 due to the numerous issues.
Any fixes available? Thanks in advance!
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
You could write a small part of code which would compare the ip with the host IP on every page call and place it into main.inc.php or config.inc.php or ubbtinc.php.
It will slow down the forums, not sure how much though.
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
actually, you could place it in addpost.php only, this way it wouldn't take a toll on the server.... I can write something like that if you wish.
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
I looked at the code.... You say: " I have the domain in our IP ban list but that doesn't stop them from posting."
in the form 123.123.123.% ?
The function as it is now only works for single IPs. So if you have the ip 234.234.234.234 in your ban list, then this IP is banned from posting and sending PMs.
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
Ok, I think I have the remedy:
in ubb.inc.php
Search for:
WHERE $extra B_Hostname LIKE '$Hostname_q'
Replace with:
WHERE $extra '$Hostname_q' LIKE B_Hostname
|
|
|
|
Joined: Oct 2001
Posts: 213
Member
|
Member
Joined: Oct 2001
Posts: 213 |
Thanks Anno, I will give your code a try this evening.
From the 6.4.4 admin panel: "(When banning by IP you can use a % to match multiple digits or _ to match a single digit. So you could ban a range or block of IP's with the following 10.1.2.%)"
I banned 1.1.%.% and everyone from that subnet can continue registering and posting.
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
I know. The ban function in 6.4 was buggy.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 190
Joined: June 2000
|
|
Forums63
Topics37,571
Posts293,923
Members13,848
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|