PDA

View Full Version : blocking the isp of a single or many users?


Flow Fusion
11-07-2005, 09:22 AM
Can this be done?

Marco van Herwaarden
11-08-2005, 03:23 PM
You can block IP's (or subnets) in your vBulletin Options.

Flow Fusion
11-08-2005, 06:13 PM
How please?

silly rabbit
11-08-2005, 06:43 PM
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

silly rabbit
11-10-2005, 11:25 AM
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


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'])));
}
}
}
}
}

Flow Fusion
11-10-2005, 11:45 AM
OK I just want to hide my isp from all members on my forum.

silly rabbit
11-10-2005, 12:03 PM
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