引用:
作者: mushroom
建議列出你的 .htaccess 檔案。
|
mushroom你好
我防盜連是這樣設
假如我的網站網址是 AAA.com
.htaccess 檔案裡面加上
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://AAA.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://AAA.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.facebook.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.facebook.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://external.ak.fbcdn.net/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://external.ak.fbcdn.net$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|zip|rar|doc|pdf|xls|txt)$ - [F,NC]
結果FB還是解析不到我論壇的圖片
是要再加入什麼呢?
感謝