I run a large forum and like everyone else have issues with spammers/bots. There are huge lists of known spam IP's that you can download and use in htaccess form, but my only concern is the file size. So I suppose the question is how big is too big, given it's going to be loading in for every user. Adding all the IP's in it gets to about 100kb.
Is there an alternative that would have less overhead? Possibly doing it with php, or will that result in some heavy load too due to file size and checking ips etc?
Any advice would be greatly appreciated.
Thanks,
Steve
One of the most logical things to do when the IP address that you are operating with has been banned is to opt for a VPN. Bright VPN, is one of the best free premium VPNs currently available on the market. VPNs are useful in that they change your IP address so that your activity is not restricted.
IP and protocol blocking work better when used to block specific applications, rather than specific content. For example, VPN traffic may be blocked by TCP/IP port and protocol blocks, combined with IP address blocks of known public VPN services. This is a common and highly effective technique.
How long do IP bans usually last? A temporary IP ban can last anywhere between 7 and 30 days, while account bans are generally permanent.
VPNs encrypt your network traffic, making it unreadable to hackers, network administrators, and even your Internet Service Provider (ISP). As you can connect to servers all over the world and receive a new IP address each time, getting around a Minecraft IP ban becomes very simple.
There are often more efficient ways than IP bans. For example, hidden fields in a form only bots will fill out, or requiring javascript or cookies for submitting forms.
For IP banning, I wouldn’t use .htaccess files. Depending on your webserver it may read the htaccess files for each request. I’d definitely add the IP-bans into your webservers vhost configuration instead. That way I’d be sure the webserver will keep it in RAM and not read it again and again.
Doing it via PHP would also be an option. This way, you could also easily limit the bans to forms, like registration in your forum.
There are a few options:
$regex = implode("|", array_map("preg_quote", file("ip.txt")));
But then, IP block lists are not often very reliable. Maybe you should implement the other two workarounds: hidden form fields to detect dumb bots. Or captchas to block non-humans (not very user-friendly, but solves the problem).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With