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 11-07-2005, 09:22 AM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default blocking the isp of a single or many users?

Can this be done?
Reply With Quote
  #2  
Old 11-08-2005, 03:23 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can block IP's (or subnets) in your vBulletin Options.
Reply With Quote
  #3  
Old 11-08-2005, 06:13 PM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How please?
Reply With Quote
  #4  
Old 11-08-2005, 06:43 PM
silly rabbit silly rabbit is offline
 
Join Date: Oct 2005
Location: Atlanta/NYC
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Flow Fusion
How please?
Flow, just as stated -> ACP -> VBulletin Options(top)->User Banning Options.

I am currently looking into 'custom' banning options as well. A particular 'user' can be banned(with controlable 'permissions') by placing that user into the 'Users'->'Bannned User' group and an IP in general can be locked out entirely by use of same option 1'st mentioned above . . .

I am looking into a 'hybrid' of the two -> BAN Any User that is logging from a particular, known IP. In my case, that would be thousands of corporate WORK computers which, not surprizingly, share the same IP.
Option1 above does just that quite effectively BUT I would like to be able to control 'permissions' as well as/instead of disabling 'registration' and viewing/posting ENTIRELY.

Think of it as a strict 'READING CLUB' for a particular group of both registered/non-register users in general . . .

I am currently compiling a PHP 'function list' in pursuit of that eventual goal,

Rabbit
Reply With Quote
  #5  
Old 11-10-2005, 11:25 AM
silly rabbit silly rabbit is offline
 
Join Date: Oct 2005
Location: Atlanta/NYC
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by silly rabbit
I am looking into a 'hybrid' of the two -> BAN Any User that is logging from a particular, known IP.
Ok, I see what I need to do based on where I am at. Am looking at the function verify_ip_ban() in functions.php and this looks to be a simple fix but am still shaky on flow/execution control with .php and where I should be at next.

If the logging IP (from work) is listed 1'st in my banning list & I get a match I want to automatically log that user as user#8(forumid = 8?). User8 has already been assigned to a special usegroup with special, restricted permissions.

Can I Just Return to global.php and this will do the trick??

Can I 'break' from a 'foreach'??

I Guess I Need To get a test server going huh??

Rabbit

Code:
function verify_ip_ban()
{
	global $vbulletin;

	$vbulletin->options['banip'] = trim($vbulletin->options['banip']);
	if ($vbulletin->options['enablebanning'] == 1 AND $vbulletin->options['banip'])
	{
		$addresses = explode(' ', preg_replace("/[[:space:]]+/", " ", $vbulletin->options['banip']) );
		$myIPposition = 0;  ->MYADD
		foreach ($addresses AS $val)
		{
			if (strpos(' ' . IPADDRESS, ' ' . trim($val)) !== false)
			{
				if ($myIPposition++ == 1);   ->MYADD
				{
					$vbulletin->forumid = 8;    ->MYADD
					break;              ->MYADD
				}
				else
				{
					eval(standard_error(fetch_error('banip', $vbulletin->options['contactuslink'])));
				}
			}
		}
	}
}
Reply With Quote
  #6  
Old 11-10-2005, 11:45 AM
Flow Fusion Flow Fusion is offline
 
Join Date: Jul 2003
Location: Georgia
Posts: 512
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK I just want to hide my isp from all members on my forum.
Reply With Quote
  #7  
Old 11-10-2005, 12:03 PM
silly rabbit silly rabbit is offline
 
Join Date: Oct 2005
Location: Atlanta/NYC
Posts: 92
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Flow Fusion
OK I just want to hide my isp . . .
I understand - you must be subbed to this thread and I am 'highjacking' I guess 'cause am attempting to answer my own q now.

Did MarcoH64 & my response indeed answer Your Q??

I'm looking to do a forced login to forumid 'user = 8' based on 'detected IP'.

Rabbit
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 10:01 PM.


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.03927 seconds
  • Memory Usage 2,214KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete