Method 1 - modify apache conf or .htaccess order allow,deny deny from all 登录后复制 Method 2 - Store them in a file outside web root. e.g: include('../private/db.php')登录后复制 Better approach is Method 1 + 2 :)