PDA

View Full Version : Auto Troll function?


Sweet Cheeks
10-28-2002, 02:28 AM
Hi guys :banana: I have a troll option/usergroup that limits the abilities for some of the trouble makers on the board (we don't ban), however some like to reregsiter about 10 times in a row to PM/Harass my members via PM.

Would there be a way to automatically put a newly registered member in a specified user group, based on their IP address? So far my troublesome trolls are cable modem users, thanks in advance :) I do have hellban installed, but some trolls are smart LOL :lick:

Logician
10-28-2002, 11:20 AM
edit register.php, find:



$DB_site->query("UPDATE user SET usergroupid=2$dotitle WHERE userid='$u'");


Replace it as:


$ban_isp='ENTER HIS IP HERE';
$source_ip=$REMOTE_ADDR;

if (substr($source_ip, 0, strlen($ban_isp))==$ban_isp)
{
$DB_site->query("UPDATE user SET usergroupid=X WHERE userid='$u'");
}
else
{
$DB_site->query("UPDATE user SET usergroupid=2$dotitle WHERE userid='$u'");
}


Replace X with your new usergroup for these users.
Enter ban IP in the part ENTER HIS IP HERE
You can enter exact IP or partial IP like "195.203.150." but dont enter xxx like:
195.203.150.xxx
195.203.xxx.xxx

The correct syntaxs are:
195.203.150.200
195.203.150
195.203
etc.
Works only if you enabled email validation.
Dont know about COPPA but I guess it wouldnt matter.

Not tested, should work..

Enjoy..

Sweet Cheeks
10-28-2002, 01:22 PM
:banana: Thanks so much Logican, you rock, I will let you know :)

Logician
10-28-2002, 03:29 PM
I guess I can use this one too.. Test it out and let me know how it's doing, if it's fine and if I can find sometime I can integrate the feature to Admin CP and then it would become more handy.. No promise though.. :)

Erwin
10-28-2002, 05:07 PM
Banning IPs is a very inexact science. :) Just watch that you don't inadvertently ban innocent members filtering through the same proxy.

Logician
10-28-2002, 08:06 PM
Originally posted by Erwin
Banning IPs is a very inexact science. :)
Correct.. But it's also the only science when it comes to pushing someone away from a site.. :p

Erwin
10-28-2002, 08:13 PM
I just ban all free email domain addresses from registering. :) It's a great wall to keep the trolls away.

Logician
10-28-2002, 08:22 PM
Originally posted by Erwin
I just ban all free email domain addresses from registering. :) It's a great wall to keep the trolls away.
As soon as services like everyone.net occurs, I dont think it's effective enough. By using everyone.net every domain owner can turn his site to a free webbased email service and there are literally hundreds of thousands domains in that service that provide free email accounts. It's impossible to trace, track and ban them all.

For example my own domain is providing free email address too but I bet it's not in your ban list.. :)

Chris M
10-28-2002, 08:23 PM
Because im not sure many people spam and signup at Erwins forum;)

Satan

Erwin
10-28-2002, 08:37 PM
eva2000 has a massive list of free email domains formatted for vB which he updates - it's a link in my sig.

Talisman
11-21-2002, 02:52 AM
Did this work for you, Julie?

(Thanks, Logician.)

Sweet Cheeks
11-30-2002, 07:27 PM
:confused: Sorry it took so long to test this, its been the server month from hell :surprised:

I made all the changes, and used an anonymous proxy to test it with and it didnt work :( . Should it make any difference if its a proxy or not?

Logician
12-01-2002, 08:17 AM
Proxy users has an IP too so provided that you entered that one into the code, it should not make any difference..

Give me exact the code you tested (starting from a few lines above and ending a few lines after) and let me check it.

CHNoodles
12-12-2002, 11:45 PM
A couple of questions on this:
[list=1] We are running vBulletin 2.2.8. I imagine this hack would apply to 2.2.8.
Our board requires e-mail confirmation. Would the action of putting the unwanted user in a separate group happen after the user creates the username but before s/he has replied to the confirmation e-mail? Or would it happen after the user has replied to the confirmation e-mail?[/list=1]

Logician
12-13-2002, 06:14 AM
We are running vBulletin 2.2.8. I imagine this hack would apply to 2.2.8
yep would apply to 228 but I didnt test it myself so can be buggy. Please test it and if it does not work, give exact details then I'll fix it for you when I can find time..

Our board requires e-mail confirmation. Would the action of putting the unwanted user in a separate group happen after the user creates the username but before s/he has replied to the confirmation e-mail? Or would it happen after the user has replied to the confirmation e-mail?

Yes the hack works when your email confirmation is ON. The user is put in the special usergroup AFTER he confirms his email. Until that time as you know he is in the "waiting email confirmation" group.

CHNoodles
12-13-2002, 02:37 PM
Thank you Logician. We might try this. If we do I will let you know how it worked.

WetWired
12-13-2002, 02:38 PM
Wouldn't this only work for one IP?

CHNoodles
12-14-2002, 12:38 AM
Well, with an "or" condition, I imagine you could make it work for several IP ranges.