2010-09-17 86 views

回答

0
# List the domains here, put [NC, OR] at the end of 
# each domain rule except the last one. 
RewriteCond %{HTTP_REFERER} example\.com [NC, OR] 
RewriteCond %{HTTP_REFERER} example\.invalid [NC, OR] 
RewriteCond %{HTTP_REFERER} example\.org 
RewriteRule .*\.swf http://localhost [L,R=301] 
+0

我不斷遭到俄羅斯域名的入侵。是否有可能適應這阻止從本地主機到包含'.ru'的URL的所有請求? – v3nt 2011-02-04 15:02:34

+0

@丹尼爾克拉布這是一個單獨的問題。阻止俄羅斯域名無法解決您的安全漏洞。 – fuxia 2011-02-05 02:21:09

+0

不,但至少如果他們確實遭到黑客攻擊,他們的腳本將無法工作,並會給我更多時間來移除黑客。 – v3nt 2011-02-07 18:33:41