Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-28-2002, 02:28 AM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:
Reply With Quote
  #2  
Old 10-28-2002, 11:20 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #3  
Old 10-28-2002, 01:22 PM
Sweet Cheeks's Avatar
Sweet Cheeks Sweet Cheeks is offline
 
Join Date: Mar 2002
Location: Carson City, Nevada
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:banana: Thanks so much Logican, you rock, I will let you know
Reply With Quote
  #4  
Old 10-28-2002, 03:29 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #5  
Old 10-28-2002, 05:07 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Banning IPs is a very inexact science. Just watch that you don't inadvertently ban innocent members filtering through the same proxy.
Reply With Quote
  #6  
Old 10-28-2002, 08:06 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #7  
Old 10-28-2002, 08:13 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just ban all free email domain addresses from registering. It's a great wall to keep the trolls away.
Reply With Quote
  #8  
Old 10-28-2002, 08:22 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #9  
Old 10-28-2002, 08:23 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Because im not sure many people spam and signup at Erwins forum

Satan
Reply With Quote
  #10  
Old 10-28-2002, 08:37 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eva2000 has a massive list of free email domains formatted for vB which he updates - it's a link in my sig.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:25 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10103 seconds
  • Memory Usage 2,261KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete