2010-09-17 106 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