The Arcive of vBulletin Modifications Site. |
|
KX - Rename Config File Details »»
|
|||||||||||||||||||||||||||
This modification was brought to you by KXDesign http://www.kxdesign.com/ ~Modification name Rename Config File ~Modification description This modification allows you to rename or move the config.php file.This is to protect your sensible information and increase the security of your vBulletin board. The majority of boards get hacked because a hacker uploads a malicious script to get hold of the config.php content.But if you move or rename it,there is no chance that they find out the location of it. Tips & Tricks: vBSEO - https://vborg.vbsupport.ru/showpost....1&postcount=24 Fool Hackers - https://vborg.vbsupport.ru/showpost....8&postcount=23 ~Modification options None ~Modification info File uploads: 0 File edits: 1 Templates: 0 Template edits: 0 Plugins: 0 SQL Queries: 0 Phrases: 0 Settings: 0 Hooks: 0 Install time: 1 minute Install level: Light ~Modification installation Step 1: Open includes/class_core.php and find: Code:
include(CWD . '/includes/config.php');
if (sizeof($config) == 0)
{
if (file_exists(CWD. '/includes/config.php'))
{
// config.php exists, but does not define $config
die('<br /><br /><strong>Configuration</strong>: includes/config.php exists, but is not in the 3.6+ format. Please convert your config file via the new config.php.new.');
}
else
{
die('<br /><br /><strong>Configuration</strong>: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php');
}
}
Code:
include(CWD . 'XXXXX');
if (sizeof($config) == 0)
{
if (file_exists(CWD. 'XXXXX'))
{
// config.php exists, but does not define $config
die('<br /><br /><strong>Configuration</strong>: includes/config.php exists, but is not in the 3.6+ format. Please convert your config file via the new config.php.new.');
}
else
{
die('<br /><br /><strong>Configuration</strong>: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php');
}
}
admincp/mynewconfig.php or includes/configuration.php . ~Modification screenshots None ~Modification changelog
~Modification copyright This may not be distributed,released or claimed as your work without author's permission. Download Now
Show Your Support
|
|||||||||||||||||||||||||||
| Благодарность от: | ||
| RyanFabbro | ||
| Comments |
|
#2
|
||||
|
||||
|
~Reserved~
|
|
#3
|
|||
|
|||
|
i don't understand :S
|
|
#4
|
|||
|
|||
|
wow nice work!
this mod is simple -> it will let you change/rename your config file but if they read this file.. they will find out... so whats the point? just asking |
|
#5
|
||||
|
||||
|
Which means each time you upgrade you will need to edit includes/class_core.php before uploading.
|
|
#6
|
|||
|
|||
|
If Hacker read files class_core will know the path of the new config files???
|
|
#7
|
||||
|
||||
|
very usefull . thanks
|
|
#8
|
||||
|
||||
|
You can select your own unique name and directory.And hackers usually ignore the class_core.php and it's harder to read that one,because it contains lots of functions and code,wheras the config.php has only comments and a couple of variables which can be called easily.
|
|
#9
|
||||
|
||||
|
I was thinking about encryption of "config.php" codes ... and suddenly I see this mode ...
When the Server has a weak security there is no solution ! but using this mode + encryption can protect your site more . And will make things too hard for hackers. Thanks Ziki to share your idea . * |
|
#10
|
|||
|
|||
|
nice, thank
|
![]() |
|
|