![]() |
Admin Protection
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 Code:
//admin protection Code:
if ($logintype === 'modcplogin') Code:
//admin protection Code:
switch ($_REQUEST['do']) Code:
//admin protection Code:
switch ($_POST['do']) Code:
//admin protection Code:
switch ($_POST['do']) Code:
case 'open': 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 |
You know IPs can be spoofed, right? ;)
|
I've unfortunately had to remove the attachment for the time being..
Hopefully the author can make some necessary adjustments to the installation, and it can be re-uploaded again shortly. |
all fixed, organized the code alot better too =) Now will send email/log to file when unauthorized user tries to login.
|
Thanks for the quick fix-me-up cerjam, it is much appreciated. :)
|
And if my PC breakes donw?huh?
|
I suppose you have never tried to login at more tham one PC. HMM not sure this is such a good Idea. Unless you have a static IP this is not good.
|
Quote:
I'm not coming back into this thread so don't waist your time. Good work cerjam by the way :banana: |
Quote:
Well then i suppose you can just got right back into ipauth.php and add your new ip :idea: one a side note it would be a pain in the butt for dial up folks, does this support wildcards? |
Quote:
|
All times are GMT. The time now is 07:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|