เราสามารถป้องกันไม่ให้โดนขโมยใช้แบนด์วิทโดยใช้ Rewrite  โดยเพิ่มข้อความต่อไปนี้ที่ไฟล์ .htaccess
ตัวอย่างนี้ป้องกันไม่ให้เว็บ test.com และ kapeek.com มา hotlink รูปภาพจากเรา 

RewriteEngine On
RewriteCond %{HTTP_REFERER} ^http://(.+.)?test.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://(.+.)?kapeek.com/ [NC]
RewriteRule .*.(jpe?g|gif|bmp|png)$ - [F]
ที่มา: 

Popularity: 1% [?]

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.