The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Admin Protection Details »» | |||||||||||||||||||||||||
I couldent find anything like this, even if it is so simple, anywhere on here so i decided to make it myself..
Description: Checks IP of moderator or administrator before allowing access to mod/admincp or editing threads. Requires mods to functions_login.php,postings.php,inlinemod.php, txt file named ippool.txt in forum root directory,apparse.php uploaded to forum root,ipauth.php uploaded to forum root. Instructions for install: 1.download attachments 2.open adminprotection.php and edit the variables to their correct settings. 3.upload ipauth.php,apparse.php,adminprotection.php,ippool. txt to forum root 4.find.. Code:
// admin control panel or upgrade script login if ($logintype === 'cplogin') { Code:
//admin protection include 'adminprotection.php'; checklogin(); //end admin protection Code:
if ($logintype === 'modcplogin') { Code:
//admin protection include 'adminprotection.php'; checklogin(); //end admin protection Code:
switch ($_REQUEST['do']) { case 'openclosethread': case 'dodeletethread': case 'dodeleteposts': case 'domovethread': case 'updatethread': case 'domergethread': case 'dosplitthread': case 'stick': case 'removeredirect': case 'deletethread': case 'deleteposts': case 'movethread': case 'editthread': case 'mergethread': case 'splitthread': Code:
//admin protection include 'adminprotection.php'; checklogin(); //end admin protection Code:
switch ($_POST['do']) { case 'open': case 'close': case 'stick': case 'unstick': case 'deletethread': case 'undeletethread': case 'approvethread': case 'unapprovethread': case 'movethread': case 'mergethread': Code:
//admin protection include 'adminprotection.php'; checklogin(); //end admin protection Code:
switch ($_POST['do']) { Code:
case 'open': case 'close': case 'stick': case 'unstick': 9. visit http://yoursite.com/ipauth.php and enter your ip and click submit 10. repeat for all admins/moderators on your forum 11. you're finished! *note this hack does not work with a dynamic ip yet, i plan to add it later on. Future Mods: Switch to MySQL table,Support for DSL/dialup IPs,Save to database on all unauthorized logins Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
|
#13
|
|||
|
|||
Very useful mod, prevents the security of your entire forum from relying on all of your moderator/admin passwords.
Nice work *installed* |
#14
|
|||
|
|||
ick, i woke up to a inbox full of 'unauthorized login' emails, i misplaced the code in functions_login.php, check original post for fix.
|
#15
|
||||
|
||||
Good job on that!
/me installs |
#16
|
|||
|
|||
prevents you from logging on elsewhere
|
#17
|
|||
|
|||
No? What do you think ipauth.php is for? lets you add another ip to the ippool. and it doesnt support wildcards yet, i use dialup myself and it really isnt a hassle adding my ip everytime i reconnect, but then again i stay online for 3-4 days at a time >.>
|
#18
|
|||
|
|||
I'm using .htaccess for extra protection, but I don't see how this couldn't work.
|
#19
|
|||
|
|||
Parse error: syntax error, unexpected T_INCLUDE, expecting T_CASE or T_DEFAULT or '}' in /home/epirate/public_html/forums/inlinemod.php on line 93
Code:
switch ($_POST['do']) { //admin protection include 'adminprotection.php'; <-- line 93.. all files are in place and edited properly. just somehow managed to kill my inline. checklogin(); //end admin protection case 'open': case 'close': case 'stick': case 'unstick': case 'deletethread': case 'undeletethread': case 'approvethread': case 'unapprovethread': case 'movethread': case 'mergethread': |
#20
|
|||
|
|||
8. CHMOD apparse and adminprotection.php to 777
DO NOT DO THIS.. if you have someone THINKING bout or ATTEMPTING to hack your forum.. i recently had a member use the 777 to his own advantage and save blank adminprotection.php and apparse files to my ftp in an attempt to gain access to my admincp.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|