安全性修正 - OWASP ZAP 常見弱點掃描含修正 弱點: Secure Apache from Clickjacking with X-FRAME-OPTIONS 編輯 httpd.conf 檔案, 並新增下列參數 #Secure Apache from Clickjacking with X-FRAME-OPTIONS Header always append X-Frame-Options SAMEORIGIN 儲存後退出,重啟伺服器 $ service httpd restart 弱點:Incomplete or No Cache-control and Pragma HTTP Header Set 在主目錄下編輯或建立 .htaccess 檔案,並複製貼上下列內容 # DISABLE CACHING <IfModule mod_headers.c> Header set Cache-Control "no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires 0 </IfModule> <FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$"> <IfModule mod_expires.c> ExpiresActive Off </IfModule> <IfModule mod_headers.c> FileETag None Header unset ETag Header unset Pragma Header unset Cache-Control Header unset Last-Modified Header set Pragma "no-cache" Header set Cache-Control "max-age=0, no-cache, no-store,...