vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   IP Restrict User (https://vborg.vbsupport.ru/showthread.php?t=40302)

Zazz 06-25-2002 10:00 PM

IP Restrict User
 
Using this hack makes it impossible for users to login with an ip other than the one that was put in database upon registering.

Not much of a hack really, only 5 line's of code and a error template, but it could be usefull to prevent account sharing and such :)

If there's no ip in the ipaddress field in the user table of your database for a user, it will allow the user to login, so modem users and other people with a dynamic ip can log-in, as long as you delete their registered ip from their profile.

Xenon 06-26-2002 01:24 PM

hmm, i don't know, but not much people have a static ip....
i think this will cause more problems as it'll avoid.

Neo 06-26-2002 03:00 PM

Isnt this already a function in vbulletin?

John 06-26-2002 04:38 PM

I've never seen it :S

Boofo 06-26-2002 05:54 PM

There's already a hack out like this called checkip. :)

Marshalus 06-27-2002 01:10 AM

I suppose this would be OK if I could restirct it by the IP block, but not the exact IP. Unless I can do that I'm not installing this, too many problems.

Zazz 06-27-2002 04:40 AM

Aargh, newreply.php must hate me :p
I didn't know there was already such a hack out there, I couldn't find it here anyway.
About the range locking, I'm working on that, but I need to find the ipban function so I can see how it works :)

Zazz 06-27-2002 09:51 AM

Did it, if you want range support open root/member.php and
replace
PHP Code:

if (($user[ipaddress]!="") && ($ipaddress!=$user[ipaddress])) { 

with
PHP Code:

$iplocker=strstr(" ".$ipaddress," ".$user[ipaddress]);
      if ((
$user[ipaddress]!="") && ($iplocker!=" ".$ipaddress)) { 


Boofo 07-15-2002 12:08 AM

Could this be made to be able to turn on or off in the admin cp?

Quote:

Originally posted by Zazz
Did it, if you want range support open root/member.php and
replace
PHP Code:

if (($user[ipaddress]!="") && ($ipaddress!=$user[ipaddress])) { 

with
PHP Code:

$iplocker=strstr(" ".$ipaddress," ".$user[ipaddress]);
      if ((
$user[ipaddress]!="") && ($iplocker!=" ".$ipaddress)) { 



adriandaz 11-03-2002 04:08 AM

hehe :) - dont install if your members are on dialup net access :D - good effort though :D


All times are GMT. The time now is 10:03 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.01138 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_php_printable
  • (1)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