The Arcive of vBulletin Modifications Site. |
|
![]() |
|||||||||||||||||||||||||
___________
PRE DISCLAIMER: This beta hack has been tested and DOES work; however it IS beta so use at your own risk. (I'm not responsible, etc etc) ??????????? Apparently someone was making a much cooler Draft hack than me (although they've vanished for almost a month now), so I decided to do this in some of my free time. I did a little searching and found no hacks like this, but if there is: please tell me. Estimated Install Time: ???? [Any questions? This thread only please ![]() What is it: This hack allows you the possibility to limit your account login to certain IP addresses (or IP ranges). This would stop people that find out your password if you enable secure login on certain IP addresses (users DON'T have to specify any or do anything and it will work just like it would normally). This is mainly for people concerned with security I guess, plus it's kinda cool as long as you're careful and if you want to restrict access. If someone aquires your password, this would prevent them from using it possibly. Why is it beta: I haven't had much time to test it out, and I'm not sure how well the checkbit-masking works even though I coded it to be honest ^^;; -- so that's why. It'd be great if you guys/girls could help out. (and the code is kinda sloppy at the moment) Images::::::::::::::::::::::::::::::::::: // ###### INSTALLATION ###### First: Using PHPMYADMIN, or your preferred SQL tool, run this query in your vB database. [sql]ALTER TABLE `user` ADD `secure_ip` VARCHAR( 150 ) DEFAULT '0.0.0.0~0.0.0.0~0!0.0.0.0~0.0.0.0~0!0.0.0.0~0.0.0 .0~0' NOT NULL ;[/sql] NOTE: Add your table prefix if you have one! ?????????????????????? IN profile.php FIND: PHP Code:
PHP Code:
PHP Code:
PHP Code:
?????????????????????? IN includes/functions_login.php FIND: PHP Code:
PHP Code:
PHP Code:
PHP Code:
IN "Modify User Option Templates" modifypassword TEMPLATE FIND: HTML Code:
<div><input type="text" class="bginput" name="emailconfirm" value="$bbuserinfo[email]" size="50" maxlength="50" /></div> </td> </tr> </table> </fieldset> HTML Code:
$ve_secure_login DONE! PLEASE let me know what you think and help me find the bugs; I KNOW they're in there! ![]() Explanation: Setting an IP to "12.14.x.x" with the check bits "255.255.0.0" will check the first two octets ("12.14") of the IP address. x=any value from 0-255 It matches up the bits in the user's IP address to the ones stored for each bit, like so: 11110000.00000100.00000000.00000010 (240.0.4.2) <-- user's IP 11110000.00000100.00000000.00000001 (240.0.4.1) <-- IP stored 11111111.11111111.11111111.00000000 (255.255.255.0) <-- Check Bits It will only check the bits you have enabled in the "Check Bits" field, so the above example would allow the IP "204.0.4.2" INTO THE ACCOUNT even though it is set to 204.0.4.1 because of the check bits. There IS some limitation to this method. ___________ POST DISCLAIMER: This beta hack has been tested and DOES work; however it IS beta so use at your own risk. (I'm not responsible, etc etc) ??????????? Show Your Support
|
Comments |
#2
|
|||
|
|||
![]()
I have something to add here. (soon)
|
#3
|
|||
|
|||
![]()
IMPORTANT: I forgot to add the "SECURE-LOGIN UPDATE" code, so if you read this before, please note that it is now in the code on the above section!
Oops. ![]() |
#4
|
|||
|
|||
![]()
would be good to have an install script, or a .txt so we can save it on a real format...
|
#5
|
|||
|
|||
![]() Quote:
|
#6
|
||||
|
||||
![]()
Would love to install this but I fear too many newbies will be locking themselves out of their accounts and support tickets will go through the roof.
![]() |
#7
|
|||
|
|||
![]()
thanks for sharing this hack
Is it posible to restrict the use of this hack to one group, superadmin for example. Thanks |
#8
|
||||
|
||||
![]()
this is a interesting hack but if i was a new person to the web i would be lost on what to do at registration page so i can protect my account. It would be better if it was just a usercp option if you decide if u want your account more secure or have a cp option to do future edits.
|
#9
|
|||
|
|||
![]() Quote:
HTML Code:
<if condition="$bbuserinfo[usergroupid]==6"> $ve_secure_login </if> |
#10
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|