How to protect/monitor your site from crawling by malicious user

后端 未结 9 726

Situation:

  • Site with content protected by username/password (not all controlled since they can be trial/test users)
  • a normal search engine can\'t get at i
9条回答
  •  走了就别回头了
    2021-02-06 19:34

    Short answer: it can't be done reliably.

    You can go a long way by simply blocking IP addresses that cause a certain number of hits in some time frame (some webservers support this out of the box, others require some modules, or you can do it by parsing your logfile and e.g. using iptables), but you need to take care not to block the major search engine crawlers and large ISP's proxies.

提交回复
热议问题