InMotion Hosting Support Center

In this tutorial:

In this Dedicated Hosting tutorial we will cover basic APF commands. The basic commands include Allowing IP's, Blocking IP's, and Unblocking IP's. After explaining what the command does, we will show you an example of the APF Command.

Note that you will require root access in order to use these commands.

Allowing IP Addresses in APF

  1. Log into your server via SSH.
  2. Here is a breakdown of the the APF command for allowing IP's in APF:
    apf -a <ip> <comment>

    Below is an example of the command (highlighted in red) in your shell instance:

    root@ded999 [~]# apf -a 123.456.789 Allowing Office IP

Blocking IP Addresses in APF

  1. Log into your server via SSH.
  2. Here is a breakdown of the the APF command for blocking IP's in APF:
    apf -d <ip> <comment>

    Below is an example of the command (highlighted in red) in your shell instance:

    root@ded999 [~]# apf -d 123.456.789 Blocking Office IP

Unblocking IP Addresses in APF

  1. Log into your server via SSH.
  2. Here is a breakdown of the the APF command for unblocking IP's in APF:
    apf -u <ip>

    Below is an example of the command (highlighted in red) in your shell instance:

    root@ded999 [~]# apf -u 123.456.789



Congratulations, now you are familiar with the basic APF including Allowing IP's, Blocking IP's, and Unblocking IP's.

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

   
Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!