Jump to content

[SOLVED] how can I protect my database configuration file?


shedokan

Recommended Posts

a simple check will be okay,

 

<?php
//make sures its .php not .php.inc
if(!IN_MySystemName)
{
die("Access Denied");
}

//Config settings (not echoing)
$password="Blar"; etc
?>

 

<?php
define("IN_MySystemName", true);
include "config.php"

?>

 

you could encrypted it as well (if you feel the need, but that becomes a pain

 

If they get FTP access then your stuffed..

 

the most common problems are things like SQL Injection..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.