|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
I have the flood check set to 180 but new users are still able to register and send messages every 20 seconds or so.
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
Guys, is the flood check working for anyone?
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Three minutes seems like quite a long time. Mine is set for 10 seconds, but can't really test it myself since it doesn't pertain to Admins/Mods... I'm wondering what values others use?
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
The flood control is only for posting topics/replies. I've got it set to 30 seconds on my devel board and it's working ok. It doesn't throttle registrations or private messages however.
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
I have it set to 180 but some spammer registered and I think he replied in like 30 topics in under 15 mins.
Unfortunately I erased this guy and his posts from within the CP, but I'll try to make a 'print screen' the next time something like this happens.
P.S. Is the edit feature fully safe now? Before even with an edit time limit of 5 mins users could edit their messages indefinitely as long as they simply opened the edit page within those 5 minutes...
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
I use 5 minutes for the floodcheck, and 30 minutes for the edit post timer; both seem to work well
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
I use 5 minutes for the floodcheck FIVE MINUTES?? Between posts??? Mine's like 10 SECONDS and I never had a problem. Dag...! Good thing you're an Admin/Mod then, to spam at will... cuz to me that's a REALLY LONG time for everyone else!!!
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
lol, well it varies the forum; i have several communities... my main is 30 seconds, and another forum is 5 minutes 
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
Guys, I think I know where the bug is:
All new registrations have the flood check set to 0, which basically means that the flood check is automatically switched off for each user upon registration (the setting needs to be blank in order for the global setting to take effect).
Is this fixed in 7.1?
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
Hmm, it's supposed to have a default value of -1 for the field. I'll alter the adduser script to make sure that it sets new registrations to -1 for 7.1
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
The flood check assigned to new registrations on my 7.0 board isn't overridden (the field is blank)... "If blank, the global config setting will be used." That's ideal. What's a setting of -1 do? 
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
-1 will make it so it uses the default set in the control panel. Any value of 0 an up means that it's specific to that user, in which case 0 would be no flood check.
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
So a blank value and -1 do the say thing... I suppose the CP wording would need to be changed if both are valid values...
"If blank or -1, the global config setting will be used."
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
hmm, no a blank value would be treated as 0 as well.
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
Doh!Guess I just didn't notice since mine's set to only 10 secs anyway...  Okay, so guess this needs to be changed anyway: "If set to -1, the global config setting will be used." 
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
Thanks guys, case closed. Would never have noticed this if not for the frequent spammer visits that I get with someone dumping 30 cut&paste posts in a matter of minutes... 
|
|
|
|
Joined: Apr 2006
Posts: 148
Member
|
Member
Joined: Apr 2006
Posts: 148 |
Rick, is there a database command that can be run to reset all those members who have the setting of 0 back to -1? And is this change getting into 7.1 final?
Thanks
Stress the system until it breaks. Hey.. it works for Spacecraft.. why not here? UBB since 1999: MonteCarloSS.com
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
This should work: UPDATE `forums_USER_PROFILE` SET `USER_FLOOD_CONTROL_OVERRIDE` = '-1' WHERE `forums_USER_PROFILE`.`USER_FLOOD_CONTROL_OVERRIDE` = ''; All of mine are set to NULL though I think you should just be able to: UPDATE `forums_USER_PROFILE` SET `USER_FLOOD_CONTROL_OVERRIDE` = '-1';
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
Hmmm...
I typed in "UPDATE `forums_USER_PROFILE` SET `USER_FLOOD_CONTROL_OVERRIDE` = '-1';" and it came back with some sort of message that 13,000 rows were affected by the query.
But when I check out any user the field is still blank. What's even more strange is that when I try the query again it tells me that 0 rows were affected.
Does this mean that all users have the -1 setting even though it doesn't show up in the CP? And are moderators still "immune" to the flood-check?
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Mods and Admins should always be immune.
As for the cp not displaying, i'm not sure, it may just show blank when you look at it, but the blank should actually be a -1.
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
Just logged in as a test user and had no trouble posting twice in a matter of seconds, bypassing the flood check.  What would be the query to blank out that setting for all users? Just ending the query with... = '-1';" as opposed to = '-1';" ?
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
This would be for users which don't have a setting (which is none, since you ran it before): UPDATE `forums_USER_PROFILE` SET `USER_FLOOD_CONTROL_OVERRIDE` = '-1' WHERE `forums_USER_PROFILE`.`USER_FLOOD_CONTROL_OVERRIDE` = ''; This would be for ALL users, regardless of if it's set or not: UPDATE `forums_USER_PROFILE` SET `USER_FLOOD_CONTROL_OVERRIDE` = '-1'; If you want the field to be blank, just update '-1' to ''.
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
Sorry, I meant to say: = '(nothing between the quotes)';" as opposed to = '-1';"
I guess I now have it set to -1 because when I ran that query again earlier for a second time it wouldn't change any rows, even though in the CP users still show up with a blank setting.
So how can I blank out the setting now? Is it safe to run a query with just '' to wipe out whatever setting I created?
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Yes it'd be safe to run the query.
I'm finding on my forums that i hvae some users who are '-1' and some who are ''; i'm thinking that When created they are created with '' and when they update their profile for the first time, it's changed to '-1'... I have nothing to back this, but it makes sense why one or two "new" users are '-1' whereas 20 other new users are ''...
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
I'm curious what the proper setting is :glances at rick:
|
|
|
|
Joined: Aug 2004
Posts: 480
Addict
|
Addict
Joined: Aug 2004
Posts: 480 |
Well I'm curious what's going on, cause I...:
- ran the query to change the setting to "-1" for all users - checked up on random users in the admin CP only to see that the setting was still blank for each of them - ran the query again only to see that no rows were affected (so seemingly all were changed to -1 even though the admin CP... still showed them as blank?) - logged in using a regular (non-admin, non-mod) account only to post two posts in 15 seconds, bypassing the admin setting of 180
|
|
|
1 members (Gizmo),
103
guests, and
103
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|