堵semalt引荐与htaccess的规则规则、semalt、htaccess

2023-09-02 11:25:26 作者:﹏浅忆丿

我已实行以下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]