简体   繁体   English

试图在 htaccess 中阻止点击轰炸机器人,但它仍然通过。 我怎样才能永远阻止它?

[英]Tried to block a click bombing bot in htaccess but it's still getting through. How can I block it for good?

My ads are frequently clicked by bots from the domain "amazonaws".我的广告经常被来自“amazonaws”域的机器人点击。 After doing some research on Google, I found that others have experienced this problem as well.在对谷歌做了一些研究之后,我发现其他人也遇到了这个问题 The bots are coming from random IP addresses and random User-Agents.机器人来自随机 IP 地址和随机用户代理。 The only thing that remains consistent is the domain.唯一保持一致的是域。 Since I only get bots from amazonaws, I'd like to just block the entire domain.由于我只从 amazonaws 获取机器人,因此我只想阻止整个域。

I've added the following code to my htaccess file, but my analytics still reports them returning to my site frequently:我已将以下代码添加到我的 htaccess 文件中,但我的分析仍然报告他们经常返回我的网站:

<Limit GET> 
Order allow,deny
Allow from all
deny from amazonaws.com
deny from .amazonaws.com
</Limit>

This has been an ongoing issue for some time.一段时间以来,这一直是一个持续存在的问题。 I had to remove my adsense in order to keep from being blocked.我不得不删除我的 adsense 以防止被阻止。 Any help would be great.任何帮助都会很棒。 Thanks.谢谢。

Can you this code also in same .htaccess :你这个代码也可以在同一个.htaccess

RewriteEngine on
RewriteCond %{REMOTE_HOST}   \.amazonaws\. [NC]
RewriteRule ^ - [F]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM