Frequently Asked Question

FAQ / VPS


How to Block, Unblock, and Allow IP address in CSF through linux command line?

Follow the below steps to block, unblock and allow the IP command in CSF.

As the first step, you have to login to SSH using Terminal or Putty.



Once after login to SSH, use the below given commands accordingly to block, unblock and allow the IP address in CSF.

You can use IPAddress.Live to find your current IP address.

Block the IP Address:

Use the below given code to block the IP Address.

Block Command: csf -d (IP Address)

Note: In the above command, enter the IP address you wish to block without brackets.

Unblock the IP Address:

Use the below given code unblock the IP address.

Unblock Command: csf -dr (IP Address)

Note: In the above command, enter the IP address you wish to unblock without brackets.

Allow the IP address:

Use the below given code to allow the IP address.

Allow Command: csf -a (IP Address)

Note: In the above command, enter the IP address you wish to allow without brackets.


How this faq is helpful:

Not at all
helpful
Not much
helpful
Some what
helpful
Very
helpful
Extremely
helpful

What could be better? (Optional)
X
  Not related to my issue
  Too complicated explanations
  Too much information
  Incorrect information
  Unclear information
  Incomplete information
  Too old information
Do you have any other feedback about this faq ?
1000

Related Tags :