0

I've been blocking IP addresses in CPanel for a number of static and dynamic sites (none of which are WordPress), for any IP's attempting to POST code or access well known pages such as wp-admin or wp-login etc.

But will this list of blocked IP's slow my sites down as the list gets longer?

  • Can you be more specific? How are you blocking IP addresses in cPanel? – closetnoc Jul 19 '16 at 4:35
  • block specific ip address, in the block IP Address section – zod Jul 19 '16 at 5:18
  • "blocking IP addresses in CPanel" - are you are doing this manually? How many IPs are you blocking? – MrWhite Jul 19 '16 at 8:54
  • I have around 20 blocked at the moment, and yes blocking them manually from activities I see in the raw logs, the blocked IP's end up in the .htaccess files for each site – zod Jul 21 '16 at 2:00
1

A simple solution I always find myself recommending. Use Cloudflare's services and you can block the spammers before they even hit your server so it won't cause any speed issues. You can block entire countries if you wanted to as well.

I know it isn't answer specifically for Cpanel but it will work alot better.

1

It will not, or at least it makes sense to block them. Just compare: 1) blocking at the firewall level is close to the the kernel, therefore very fast 2) allowing the attacker to pass to the site involves apache, perhaps php and 404 error generation. Too much CPU and network resources.

If you have have millions IPs to block there, then it will slow down the server, but on the other hand, to generate several errors (e.g. wp-admin, wp-login, xmlrps etc) per each IP for the same millions of IPs... It worth to block.

Also, fail2ban is quite helpful: I believe it can remove from the black list IPs which did not tried to attack for certain period of time.

  • "ot at least it makes sense" - what do you mean by this? What "makes sense"? – MrWhite Jul 19 '16 at 12:11
  • 1
    @w3dk "or at least it makes sense to block them". Corrected. – Putnik Jul 19 '16 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.