|
 |
|
ขอสอบถามเรื่องป้องกันขโมยไฟล์ mp3 หน่อยครับ คือว่าผมอยากจะป้องกันไฟล์ mp3 |
|
 |
|
|
 |
 |
|
ใช้ $HTTP_USER_AGENT ความหมายคือ
แสดงประเภทของโปรแกรมที่เรียกเข้ามา.
เราก็เขียนเงื่อนไขกันไว้
เช่น
Code (PHP)
<?
if (ereg("$IDM",$HTTP_USER_AGENT))
{
print("นั่นแน่เนียลจริงๆ");
exit();
}
?>
|
 |
 |
 |
 |
Date :
2009-07-28 16:14:25 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เอ๊ะ ....ไม่น่าใช่ ถ้าไม่เกี่ยวก็ขออภัยนะจ๊ะ
|
 |
 |
 |
 |
Date :
2009-07-28 16:16:15 |
By :
panyapol |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
มัน Error แบบนี้อ่ะครับ
Warning: ereg() [function.ereg]: REG_EMPTY in C:\AppServ\www\test.php on line 2
|
 |
 |
 |
 |
Date :
2009-07-28 16:21:00 |
By :
banktt |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เก็บเอาไว้ใน db แล้วบังคับให้มี username,password ในการดาวน์โหลด
เพราะโปรแกรมช่วยดาวน์โหลดไม่กี่โปรแกรมที่มีให้ใส่ user, pass
เช็ค browser (วิธีนี้โดนปลอมได้)
ใส่คุกกี้ตอนมาดู โดยอิง session_id
หน้ากดดาวน์โหลดบันทึกคุกกี้ กดลิ้งค์ปุ๊บไปหน้าดาวน์โหลด เรียกหาคุกกี้ ไม่มีก็จบ.
|
 |
 |
 |
 |
Date :
2009-07-28 19:09:05 |
By :
mr.v |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
เก็บใส่ db เพลงละ 3mb ถ้า 192k นี่ซัดไป 6,7 mb คูณเข้าไปนี่ db อ้วนกลมเลย 
ใช้ header ช่วย download ในหน้าดาวน์โหลดก็เช็คล็อกอินด้วย
|
 |
 |
 |
 |
Date :
2009-07-28 19:22:54 |
By :
plakrim |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 00
|