DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • April 26, 2019, 08:44:38 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

Pages: [1]   Go Down
Author Topic: Make dbconnect.php more secure  (Read 3394 times)
0 Members and 1 Guest are viewing this topic.
Captain of the Guard
Offline Offline

Posts: 170

View Profile
« on: January 04, 2006, 03:52:03 AM »

Its not recommend to keep dbconnect.php on root directory. Probability is small, that someone can find that... better belive it.

One simpel way to secure your dbconnect.php is to hide that. Create another directory and put your dbconnect.php that directory. Now create another dbconnect.php and write
<?php include("your created directory name/dbconnect.php"); ?>
Save that file and upload it to your root directory.

Sorry my english if there is some misspelling.
« Last Edit: January 04, 2006, 03:54:35 AM by artti » Logged
Global Moderator
Mod God
Offline Offline

Posts: 4647

Be aware of the squirrel!

View Profile WWW
« Reply #1 on: January 04, 2006, 03:55:37 AM »

if your server setup is correct, nobody will be able to read the dbconnect.php .

Just deny acces for all users not from localhost via .htaccess and you don't need to worry about hiding it.

Maybe even denying read-access via chmod will do...

EDIT: Any attempt to read the content of dbconnect.php will - with your solution - also reveal the new location of it and so it will be only a second step until you find it.
« Last Edit: January 04, 2006, 04:08:55 AM by XChrisX » Logged

Running for more than three years now:
Pages: [1]   Go Up
Jump to:  

DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
20 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search