vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Auto Troll function? (https://vborg.vbsupport.ru/showthread.php?t=45092)

Sweet Cheeks 10-28-2002 02:28 AM

Auto Troll function?
 
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:


PHP Code:

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

Replace it as:
PHP Code:


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

if (
substr($source_ip0strlen($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

Quote:

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

Quote:

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.


All times are GMT. The time now is 08:13 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01451 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete