UBB.Dev
Posted By: little_joe Any way to get IP ban to work in V6.4.4? - 02/05/2005 4:44 PM
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!
Posted By: Anno Re: Any way to get IP ban to work in V6.4.4? - 02/05/2005 4:57 PM
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.
Posted By: Anno Re: Any way to get IP ban to work in V6.4.4? - 02/05/2005 4:59 PM
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.
Posted By: Anno Re: Any way to get IP ban to work in V6.4.4? - 02/05/2005 5:12 PM
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.
Posted By: Anno Re: Any way to get IP ban to work in V6.4.4? - 02/05/2005 5:34 PM
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
Posted By: little_joe Re: Any way to get IP ban to work in V6.4.4? - 02/06/2005 12:08 AM
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.
Posted By: Anno Re: Any way to get IP ban to work in V6.4.4? - 02/06/2005 12:54 AM
I know. The ban function in 6.4 was buggy.
© UBB.Developers