How to change the name of config.php

by Aoki - 15-01-2015, 07:01 AM
selling fadeds nudes
Posts:
5,641
Joined:
Jan 2015
Likes:
1,534
Credits:
21,505
Reputation:
231
2 Years of Service
#1
OP
Posted: 15-01-2015, 07:01 AM
This little trick adds some extra security to your board.
Change the name of config.php to anything you want. In this tutorial I'm going to name the config "securedconfig.php".

Now, in config.php, put this:

Code:
<?

if (realpath(__FILE__) == realpath($_SERVER['SCRIPT_FILENAME'])) {

   exit('Denied.');

}

@include('yournewconfigname.php');

In "securedconfig.php" put the old content of your old config.php
That's it!
Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
Member
Prime
Posts:
166
Joined:
Feb 2015
Likes:
6
Credits:
91
Reputation:
7
2 Years of Service
#2
Posted: 05-02-2016, 08:05 PM
Sadly this no longer works for me, trying to figure out why.
Root@NBB:-$
Prime
Posts:
118
Joined:
Feb 2016
Likes:
3
Credits:
111
Reputation:
9
1 Year of Service
#3
Posted: 06-02-2016, 11:06 PM
Still works, thanks.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)