• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to Register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.


No announcement yet.

How to ban the IP address from the Linux server


Unconfigured Ad Widget

  • Filter
  • Time
  • Show
Clear All
new posts

  • How to ban the IP address from the Linux server

    WordPress Hosting on SSD Servers

    1) Login to the server as via ssh with root user..

    2) If you are running iptables, you can enter:

    iptables -A INPUT -s <IP> -j DROP

    3) If you have APF firewall installed

    apf -d <ip>

    4) When you reboot this IP ban will be removed, meaning the IP will no longer be banned anymore.
    If you have APF you can get around this by opening the deny hosts file.
    Last edited by admin; 08-05-2015, 06:42 AM.

Sign up for a News Letter Click here to sign up