dongmeng2687 2014-08-30 04:19 采纳率: 0%
浏览 44
已采纳

阻止spambot访问我的网站

I have search the Internet but all resources I found seem not to work (I guess spambots are smarter now). am having a lot of spambots on my site, these spambots are able to register and login to the site then stay online(this is disturbing) I have used captcha on creating new topics(this stopped spam bots from posting to my forum) but what I want is something that will totally stop spambots from accessing my site(maybe redirect them to 404) please help. thanks in advance

  • 写回答

1条回答 默认 最新

  • doukuizuo1795 2014-08-30 04:27
    关注

    but what I want is something that will totally stop spambots from accessing my site

    This isn't possible. It's completely impossible. If this is what you want, stop, give up, move on.

    If what you really want is to stop as many as you can:

    • Use some JavaScript to remove and element from the form. (This can be a hidden element.) If the element is present, you know that it's either a bot that didn't run your JavaScript, or a user that has JS disabled. If you need to support users that have disabled JS, don't do this. Note that some bots can and will run JavaScript, so this won't stop all.

    • Require e-mail verification. Plenty of bots get around this, but many don't.

    • You can keep your CAPTCHA if you want, but bots are pretty good at figuring this out, and when they aren't there is always Mechanical Turk and similar methods.

    • When a bot does get in and create thousands of accounts, figure out what happened by analyzing your server logs. Did you see 1,000 requests from the same IP address? Do something about that and throttle requests from one IP. Did they all have the same user-agent string and does it look bogus? Consider blocking it. This sort of work will go a long way, but requires your effort.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大