我已实行以下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]
上一篇:获取与htaccess的网址两个变量变量、两个、网址、htaccess
下一篇:移动codeigniter项目到Amazon EC2,htaccess以及ModRewrite问题项目、问题、Amazon、codeigniter