如何预防抗病毒攻击

时间:2018-01-23 12:03:52

标签: php asp.net .htaccess seo

我有一个网站。一个机器人每天访问我的网站,并在0秒内离开。所以100%退出。我试图阻止这种情况,因为它降低了我的SEO排名。

我用Asp.Net和Php。

面对这个机器人

到目前为止,我已经在htaccess中尝试了以下代码 但这不起作用。

如何防止这种抗血清攻击以及100%退出的僵尸程序?

.htaccess:

RewriteEngine On 

RewriteCond %{THE_REQUEST} \?(ref=.*)?\ HTTP [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*uptime-as\.net [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*uptime-us\.net [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*uptime-eu\.net [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*hulfingtonpost\.com [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*apanews\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*adcash\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*aliexpress\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*bestwebsitesawards\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*buttons-for-website\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*bycontext\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*cenokos\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*cenoval\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*cityadspix\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*darodar\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*econom\.co [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*edakgfvwql\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*gobongo\.info [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*ilovevitaly\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*ilovevitaly\.info [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*ilovevitaly\.org [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*ilovevitaly\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*iskalko\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*jollygame\.net [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*luxup\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*max-start\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*o-o-6-o-o\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*o-o-8-o-o\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*priceg\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*savetubevideo\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*screentoolkit\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*semalt\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*seoexperimenty\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*slftsdybbg\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*socialseet\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*superiends\.org [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*vodkoved\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*websites-reviews\.com [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*websocial\.me [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*ykecwqlixx\.ru [NC,OR] 
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*simpleshare-buttons\.com [NC] 
RewriteRule ^ http://www.hqtunes.com%{REQUEST_URI}? [R=301,L,NE]

web.config:

未添加任何代码

0 个答案:

没有答案
相关问题