DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 27, 2016, 05:02:11 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

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

Posts: 164



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
Code:
<?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
XChrisX
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
  Print  
 
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!
Who's Online
52 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search