我做一個產生html頁面的功能,在瀏覽器準備好需要產生頁面的html代碼,以post方式,html代碼作為參數傳給產生頁面功能的php檔案,php拿這些html代碼進行寫檔案操作並且返回該檔案路徑,瀏覽器收到路徑跳轉到產生後的頁面。
我在本機伺服器很正常沒有報錯,在外網伺服器卻報了412錯誤,報錯內容如下:
412 ErrorYour request got filtered out due to possible security issues.One or more things in your request were suspicious (defective request header, invalid cookies, bad parameters)If you think you did nothing wrong:try again with a different browseravoid any evil characters inside the request urlIf you are the owner of the website, you can consider revising the rules of the mod_security module or turning it off from your Web Hosting Control Panel.
回複內容:
我做一個產生html頁面的功能,在瀏覽器準備好需要產生頁面的html代碼,以post方式,html代碼作為參數傳給產生頁面功能的php檔案,php拿這些html代碼進行寫檔案操作並且返回該檔案路徑,瀏覽器收到路徑跳轉到產生後的頁面。
我在本機伺服器很正常沒有報錯,在外網伺服器卻報了412錯誤,報錯內容如下:
412 ErrorYour request got filtered out due to possible security issues.One or more things in your request were suspicious (defective request header, invalid cookies, bad parameters)If you think you did nothing wrong:try again with a different browseravoid any evil characters inside the request urlIf you are the owner of the website, you can consider revising the rules of the mod_security module or turning it off from your Web Hosting Control Panel.
mod_security 伺服器這個模組,阻止了這次請求,因為可能會有安全性漏洞,例如xss。