Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2001
Posts: 213
Member
Member
Offline
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!

Sponsored Links
Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
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
Offline
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
Offline
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
Offline
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

Sponsored Links
Joined: Oct 2001
Posts: 213
Member
Member
Offline
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
Offline
Joined: May 2001
Posts: 550
I know. The ban function in 6.4 was buggy.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)