DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • October 28, 2016, 12:44:29 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Resource Pages
IRC Channels

Pages: [1]   Go Down
Author Topic: Make dbconnect.php more secure  (Read 3019 times)
0 Members and 1 Guest are viewing this topic.
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
<?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!
Who's Online
45 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search