How to Block 100,000+ Individual IP addresses

后端 未结 11 1217
长发绾君心
长发绾君心 2020-12-07 09:39

Introduction

How do you Block large number of IP address from your web application/server. Obviously that can easily be done in P

11条回答
  •  执念已碎
    2020-12-07 10:19

    You need to do this with an external firewall, not in PHP. I recommend pfSense or PF. I have used it before and it is very easy to use, very intuitive, and extremely powerful. It is the choice of the best sys-admins. I run it on FreeBSD, but it works great on OpenBSD as well. I am a Linux guy so it pains me to say this, but don't try to run it on Linux. BSD is easy, and you can figure it out quickly.

    An awesome feature for pfSense is the ability to configure using scripts and restricting the configuration access to a single network interface (so that only things on the LAN can configure it). It also has a couple of ID10T level features to keep you from cutting off your own access accidentally.

    You should also be aware that many spammers can switch IPs quickly using things like Tor. To fix this you should include in your block list the addresses that are known tor exit nodes (this list is available from various places).

提交回复
热议问题