woff 發表於 2013-11-25 17:55:59

CKFinder 2.4 安裝設定

一直出現「因為安全因素 , 檔案瀏覽器已被停用 ! 請聯絡您的系統管理者並檢查 CKFinder 的設定檔 config.php !」檢查了好幾次的設定,我才想起來,還有一個地方要設定,為了整個系統的安全性,CKFinder也可以透過session認證的方式來增加安裝性。當然,說明的沒有錯,要去修改config.php,修改的地方只有一個,請參考下面。
在function CheckAuthentication()下面會看到
//return false; <—這行註解掉
return true; <—新增這行原文說明如下
//WARNING : DO NOT simply return “true". By doing so, you are allowing
//"anyone" to upload and list the files in your server. You must implement
//some kind of session validation here. Even something very simple as…// return isset($_SESSION['IsAuthorized']) && $_SESSION['IsAuthorized'];//… where $_SESSION['IsAuthorized'] is set to “true" as soon as the
//user logs in your system.意思是說,請不要輕易的將設定改成 return true,這樣一樣任何人都可以透過CKFinder來上傳檔案,任何人可以上傳檔案,假設設定的不嚴僅,一些網站的內容真的很容易被別人給黑掉,還好,我使用CKFinder的環境本來就有使用session做一些檢查,所以咧,各位看倌請小心使用。

呵呵 發表於 2013-11-25 21:20:29

{:5_4:}牛X海海!!!
頁: [1]
查看完整版本: CKFinder 2.4 安裝設定