Block access to vB PHP files by user ID
This modification is in the archives.
This mod allows you to block access to the following vB PHP files by specifying what user IDs to block. This works on a per file basis, so you can have different userIDs for different files. You can also block userID 0 to prevent guests or bots from accessing any of the files. No screenshot is necessary, as a blocked user will see the 'you do not have permission to access this page' notice instead of the file output. See post6
Spoiler (click to open)
If the extension has both of these, where global is the forum root global:
Code:
define('THIS_SCRIPT', 'uniquename'); require_once('./global.php'); Code:
// change 123.123.123.123 to your IP address if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123') { $config['Misc']['debug'] = true; } Code:
Varname: bfabu_uniquename_uids Setting Group: Block File Access Settings Product: Block File Access Title: Block 'uniquename' Usage Description: Enter the user IDs to block from using the uniquename.php file. Separate each user ID with a space. Example: 8 16 24 Option Code: leave it blank Data Validation Type: Free Default: leave it blank Display Order: leave as-is vBulletin Default: Yes Code:
// change 123.123.123.123 to your IP address if ($_SERVER['REMOTE_ADDR'] == '123.123.123.123') { $config['Misc']['debug'] = true; } Close
Code:
ajax.php announcement.php attachment.php calendar.php cron.php editpost.php external.php faq.php forumdisplay.php image.php index.php inlinemod.php joinrequests.php login.php member.php memberlist.php misc.php moderator.php newattachment.php newreply.php newthread.php online.php payments.php poll.php postings.php printthread.php private.php profile.php register.php report.php reputation.php search.php sendmessage.php showgroups.php showpost.php showthread.php subscription.php threadrate.php usercp.php usernote.php Code:
// in case you block yourself from login, why would you do that, :wink: // place this in the vB config to completely disable everything // and then go log in, and then comment this from the vB config define('DISABLE_HOOKS', true); Download This modification is archived and cannot be downloaded. |
Similar Mods
Restrict access to vB files to users with x referals! | vBulletin 2.x Full Releases |
AminCP: Restrict other administrator's access to certain files | vBulletin 2.x Full Releases |