阻止自动垃圾邮件流量

时间:2015-07-14 07:40:03

标签: .htaccess referrer-spam

我看到我的网站自动接收来自floating-share-buttons.com,Get-Free-Traffic.com,event-tracking.com,forum.topic64300434.darodar.com等的垃圾邮件流量。 我在谷歌搜索并找到了一种方法来阻止这个使用htaccess文件。我找到的代码如下 -

RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly.\.ru/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly\.org/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*ilovevitaly\.info/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*iloveitaly\.ru/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*econom\.co/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*savetubevideo\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*kambasoft\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*buttons\-for\-website\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*semalt\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*floating\-share\-buttons\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*Get\-Free\-Traffic\-Now\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*event\-tracking\.com/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*darodar\.com/ [NC]
RewriteRule ^(.*)$ – [F,L]

我想知道这段代码是否是最佳解决方案。此代码的作者说该代码将阻止垃圾邮件流量。我想知道它是否会?有没有更好的解决方案?这个代码实际上与垃圾邮件机器人有什么关系呢?

1 个答案:

答案 0 :(得分:1)

不,这不是解决方案,该代码不适用于该列表中的大多数引荐。唯一将使用htaccess文件阻止的是 $email_subject = $cnm ." |abc.com"; $email_message ="<HTML><BODY><TABLE>"; $email_message .= "<TR><TD> Job Descrption :".$jb_des ."</TD></TR>\r\n\n"; $email_message .="<TR><TD>Employer Name :".$frm_nm." </TD></TR>" ."\r\n\n"; $email_message .="<TR><TD>Company Name :".$cnm." </TD></TR>" ."\r\n\n"; $email_message .="<TR><TD>Message :".$msg." </TD></TR>" ."\r\n\n"; $email_message .="<TR><TD>Title of Job Opening :".$job_ti." </TD></TR>" ."\r\n\n"; $email_message .="</TABLE></BODY></HTML>"; $headers = "From:<$frm_nm@".DOMAIN_WEBMAIL.">"."\r\n\n"; $headers .= "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; @mail($to_em,$email_subject, $email_message, $headers); ,其余的将不起作用。

我们可以将Google Analytics中的垃圾邮件分为2类, Ghosts 只会点击Google Analytics报告而永远不会访问您的网站 Crawlers 因为名称意味着抓取您的网站,因此他们可以访问。

由于Ghost垃圾邮件在任何服务器端解决方案都不会与您的网站进行交互,因为htaccess不会产生任何影响。 要停止Ghost,您必须使用GA中的过滤器

您可以在相关问题中找到详细信息。

https://stackoverflow.com/a/28354319/3197362

https://stackoverflow.com/a/31270950/3197362