Problems with blocking IP addresses

Operating System & Version
Apache 2.4.46 with LiteSpeed Web Server
cPanel & WHM Version
88.0.14

mikehermary

Registered
Aug 24, 2020
1
0
1
Red Deer
cPanel Access Level
Root Administrator
Hello,

Our server is having issues blocking access to users from the following IP addresses: <IPsRemoved>. We have added the three to the blacklist in the affected account using the IP Blocker in cPanel, but the users from those IP addresses are still able to visit our website and submit spam user registration submissions using a WordPress-based form. The WordPress site is using the Network multi-site setup and only one of the four active sites is experiencing an abundance of spam registrations from offending IP addresses.

Does anyone have any suggestions on why this is not working?

Cheers,

cpanel-blocked-ip-addresses.png
 
Last edited by a moderator:

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hello,

The IP Blocker in cPanel adds an entry into the .htaccess file for your account to block the offending IP. Similar to the following:
Code:
deny from 123.45.67.8
This works fine when you're running apache and should work when running Litespeed needs to be configured this is explained here: htaccess doesn't work in litespeed