DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 18, 2019, 02:23:38 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages

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

Posts: 176

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
Please take the time to read the FAQ and browse the DragonPedia

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