Drupal Technical
How to block, unblock and whitelist IP's from server
If Config server firewall(CSF) is installed on your server then, you can edit the firewall configurations from the command line using the following commands.
To check whether an IP address is blocked or not using the following command.
csf -g IP ADDRESS
This will list the blocked IP addresses.
To unblock an IP address which is currently blocked by the CSF firewall using the following command.
csf -dr IP ADDRESS
By giving this command it will unblock the blocked IP address from the list.
To whitelist an IP address use the following command.
csf -a IP ADDRESS
This will white list the IP address and prevent from getting blocked.
You can block an IP address using the following command.
csf -d IP ADDRESS
This will block the IP address given.