堵semalt引荐与htaccess的规则 [英] blocking semalt referrers with htaccess rules
本文介绍了堵semalt引荐与htaccess的规则的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已实行以下code到htaccess,但仍然看到来自semalt引荐,如:
I have implemented the following code to htaccess but are still seeing referrers from semalt, such as:
74.semalt.com
89.semalt.com
在code:
The code:
# Block visits from semalt.com
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*semalt\.com [NC]
RewriteRule .* - [F]
不知道如何这些推介的绕过这个规则(这是我在网上找到的),我怎么能完全prevent他们?
Any idea how these referrers are bypassing this rule (which I found online) and how I can fully prevent them?
推荐答案
我好了,这是怎么得到它的工作:
Ok, this is how I got it to work:
# Block visits from semalt.com
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://([^.]+\.)*semalt\.com [NC]
RewriteRule (.*) http://www.semalt.com [R=301,L]
这篇关于堵semalt引荐与htaccess的规则的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文