The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
![]()
Anyone?
|
#12
|
|||
|
|||
![]()
This hack would be very very useful.
I too would implement this on my boards in a heart beat. ![]() |
#13
|
|||
|
|||
![]()
You could achieve (a) by firstly modifying the session table to contain a field called active. Then with the new field added it becomes as simple as setting active to 1 every time a new session is created and most importantly setting active of all other sessions for that userid that have a different IP address to 0. e.g. (UPDATE session SET active =0 WHERE userid=$bbuserinfo[userid] AND host!=$REMOTE_ADDR)
Now for the really clever part when a user requests anything you just check to see if the session they are using has been deactivated, if its been deactivated youve caught simultaneous browsing from different IP addresses. To achieve (b) Create two new tables (master/detail relationship) called say abuseevent and abusedetail. The reason for using a master detail relationship is it allows for any number of simultaneous sessions. In abuseevent record the actual abuse e.g. userid, time & abuseid (auto increment) In abusedetail record each of the IP addresses that where active at the time e.g. abuseid, IP address & abusedetailid (auto increment) Ill leave part (c) for someone else to figure out as the solution is extremely involved, personally I would write the code necessary to do parts (a), (b) before even thinking about all extra logic needed for part (c). |
#14
|
|||
|
|||
![]()
Thanks for your reply dabean,
i like your theory, but due to the fact that i lack complete knowledge about php, i am unable to decide how to modify tables, and what templates and php files to change. About part (c) , there is an already made hack about mass delete users (made by Blue2000) and can be found at http://www.vbulletin.com/forum/showt...5&pagenumber=1 i asked for these option to be added Quote:
so the theory is there for the script, only professional coders needed now ![]() please coders support this script by sharing your codes, and those who are not coders, support the script by saying that you want this script so bad ![]() cheers, |
#15
|
|||
|
|||
![]() Quote:
Kier made this hack to mass move users in and out of usergroups: http://www.vbulletin.com/forum/showt...threadid=13687 |
#16
|
|||
|
|||
![]()
Would you have to enter annother column? I would think something like this:
every time a page is requested: Code:
SELECT count( * ) AS number FROM session WHERE userid = $bbuserinfo[userid] and lastvisit > $browsertimeout if( $result[ number ] > 1 ) { update user set usergroupid = some_id_for_dup_user_acct where userid = $bbuserinfo[ userid ] } Or if you wanted to be tricky, you could alter the UPDATE SESSION query to ignore IP and just user USERID.. UPDATE session SET blah WHERE userid = $bbuserid[ userid ] then check mysql_num_rows_affected (or whatever the function is). If it updates more than one row, you have two userids in there. |
#17
|
|||
|
|||
![]()
Cool Ideas ...
someone told me that it is better and easier to use SSI (Server Side Includes) to prevent password sharing tell me what you think? |
#18
|
||||
|
||||
![]() Quote:
|
#19
|
|||
|
|||
![]() Quote:
PHP Code:
(1) where shall i insert this code? in member.php (start login) and include the member.php in everypage ? or insert it in every page? (2) how can you look at the blocked account or report it automatically? Thanks guys ![]() |
#20
|
||||
|
||||
![]()
Member.php really has nothing to do with logging in.. Sure it has an action there to account for it, but that is just to show a template and do the proper redirects.
You could enter it in every file but that is kind of redundant and unmaintainable. The file you are looking for is session.php. This file handles the logging in of every member whether from form or cookie and more importantly it controls the session table where the information you need is located. A little pseudo code of how I would do it is: Code:
logging in check userid if userid exists in session table redirect to error page increment invalid login counter. max invalid logins reached? lock account (flag on user table). else continue with login and proceed. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|