大家好我发现这个代码.htaccess阻止一个网站,但不明白为什么第一行是[NC,OR]而第二个链接没有? 如果我想阻止2个或更多网站的流量那么好吗?
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} lsale02\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} esoqld.ru\.ru <------- **does not have [NC,OR]**
RewriteRule .* - [F]
答案 0 :(得分:0)
如果您想拒绝访问更多网站,请添加以下内容。小通知,每一点都需要逃脱:
RewriteEngine on
# Options +FollowSymlinks
RewriteCond %{HTTP_REFERER} lsale02\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} another\.ru [NC,OR]
RewriteCond %{HTTP_REFERER} esoqld\.ru\.ru [NC] # last one doesn't need OR because there will be no more conditions.
RewriteRule .* - [F] # returns a 403 [F]orbidden