2013-02-21 80 views
0

我想通過在httpd.conf文件中使用「Allowoverride FileInfo」來解決安全問題,該文件允許htaccess文件(我的htaccess文件只是在zend2中定義的重定向)。我爲我的項目使用zend框架2.x(就像一些購物車網站)。Apache Allowoverride FileInfo安全處理

I have researched and I got the following information. 

1. Better to place "Allowoverride FileInfo" inside "Directory" directive for better  performance. 
2. Use "AccessFileName .config" instead of allowing .htaccess we can use .config, which might help some way security. 
3. Just copiying the htaccess code to httpd.conf file(for which there is no security risk, as "Allowoverride None" is used). 

但是沒有關於安全問題,這是主要關心的問題。

Could somebody help me with information if .htaccess file is used. 

1. What are the security measures I have to take care ?. 
2. Is there a chance of intrusion?. 

謝謝, Dilip。

回答

0

你可以使用腳本進行網頁安全性(自制或支付(我讓它們)跟蹤頁面瀏覽量和從什麼ip和時間,或使用你的日誌,你也可以使授權文件(我讓他們並可以幫助你),並自動禁止不正確的登錄嘗試,對於其他事情(網頁除外),如FTP可以使用SSL或RSA安全證書更改與每次嘗試同樣適用於VPN證書,但它真正你需要它的作用是,默認情況下,.htaccess文件應該設置爲只讀,並且絕對不允許使用override(使用你的apache2 conf文件),我希望這可以回答你的問題,如果不是更多地告訴我你想要保護什麼,一個腳本,它會通過電子郵件向您發送郵件,或從未經授權的用戶訪問某個文件/頁面。