vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   blocking the isp of a single or many users? (https://vborg.vbsupport.ru/showthread.php?t=100289)

Flow Fusion 11-07-2005 09:22 AM

blocking the isp of a single or many users?
 
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

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

silly rabbit 11-10-2005 11:25 AM

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


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

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


All times are GMT. The time now is 07:32 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.01095 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete