Friday, February 21, 2014

การทำเว็บไซต์ไม่ให้ Chrome ถามเวลาที่ดาวน์โหลดไฟล์ zip ที่มีไฟล์ .exe อยู่ข้างใน

สามารถทำได้โดยการเพิ่ม Tag Content Type Zip เข้าไปที่ส่วน Header ของไฟล์เช่น
<head>
<meta http-equiv="Content-Type" content="HTML,CSS,XML,JavaScript">
<meta http-equiv="Content-Type" content="application/zip .zip">
<meta charset="UTF-8">
</head>

อ้างอิงจาก
http://www.sitepoint.com/forums/showthread.php?940794-File-(-zip)-is-not-commonly-downloaded-and-could-be-dangerousded-and-could-be-dangerous

No comments:

Post a Comment