Back to vBulletin 4.x Add-ons

admincp: Extra Security (htaccess)
Mod Version: 1.00, by Marv

vB Version: 4.0.0 Rating: (4 votes - 4.75 average) Installs: 39
Released: 05 Jan 2010 Last Update: Never Downloads: 0
Not Supported Code Changes Translations Is in Beta Stage  

First of all: this isn´t my mod. I´have this one on my forums now for 4 or 5 years and was looking around here at vb.org for it but it seems it´s gone (or may be it never was released here). Yet, I haven´t found it so I tested this in vb4 and it works. Guess it´s quite useful for some of you so I share this with you.

This mod adds some extra security to your admincp. And your admincp only. The modcp remains untouched, so mods can access the modcp without a secondary login.

Files to edit: 1
Install time: 1 minute

Open admincp/index.php on your server.

Above:
PHP Code:
// ######################## SET PHP ENVIRONMENT ########################### 
add this:

PHP Code:
$index['public'] = $index['public'];
$phpkd['username'] = "Username";    // Here Is the User Name
$phpkd['password'] = "Password";    // Here Is The htaccess Password

if(!$index['public']){
if(
$_SERVER['PHP_AUTH_USER'] != $phpkd['username'] || $_SERVER['PHP_AUTH_PW'] != $phpkd['password']){
Header("WWW-Authenticate: Basic realm=\"Security Check\"");
Header("HTTP/1.0 401 Unauthorized");echo "<head><title>Unauthorized Login attempt</title></head><body bgcolor='#FFFFFF'><center><br>
<a href=\"../index.php\" style=\"text-decoration: none\" target=\"_self\">
<font face=\"MS Sans Serif\" color=\"#000000\" size=\"4\"><b><br>Unauthorized Login</b></a></body></html>"
;exit;}} 
Change "Username" and "Password" to whatever you want, save and upload the file to your admincp (overwrite the old index.php or rename it first to index.php.old) and you´re done. Fast and simple.

If the original author is still around hit me back so you can release this one under your name.

Download

No files for download.

Similar Mods

htaccess Protection for admincp & any dir Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024