Blocking access to site by banned IP addresses

后端 未结 4 2127
难免孤独
难免孤独 2020-12-20 03:51

I have a list of IP addresses of bots/hackers that are constantly attacking one of my sites. I want to block these visitors by IP and am trying to work out a \"best\" approa

4条回答
  •  猫巷女王i
    2020-12-20 04:22

    I'd have to agree with David on this for several reasons.

    1. By blocking via software hackers/bots will still be able to abuse your resources (bandwidth, processor time, etc).

    2. Software cant protect your site against dos attacks.

    3. If a hacker is good they'll find a way around software blocks.

    4. Updating blocking code will require recompiling of your application.

    Your answer is in the firewall. Set up rules to block out the users and they wont be able to connect.

    Sending an "under maintenance" page is a terrible idea because it'll confuse normal users and won't deter a good hacker...

提交回复
热议问题