How do I block an IP address in DirectAdmin?

22 views

How do I block an IP address in DirectAdmin?

Overview

You can block an IP address to prevent unwanted visitors, bots, or malicious traffic from accessing your website or server. This can help improve security, reduce spam, and protect your resources.

Step-by-Step Guide

1. Log in to your DirectAdmin control panel

  • Open your DirectAdmin login page
  • Enter your username and password

2. Open the firewall or IP management section

Depending on your server setup, look for one of the following:

  • ConfigServer Security & Firewall (CSF)
  • IP Management
  • Firewall Settings

3. Add the IP address to the block list

  • Find the option for deny list / block list
  • Enter the IP address you want to block
  • Click Add or Deny

Example:

  • 123.45.67.89

4. Save and apply changes

  • Save your firewall configuration
  • Apply or restart the firewall if prompted

5. Verify the block

You can test the block by:

  • Trying to access your website from that IP (if possible)
  • Checking firewall logs to confirm it is being denied

Important Notes

  • Blocking an IP affects all access from that address
  • Some users may share dynamic IPs (mobile networks, ISPs)
  • Be careful not to block your own IP address
  • Changes may take effect immediately or after firewall reload

Common Issues & Fixes

IP still able to access the site

  • Ensure firewall rules were saved correctly
  • Restart the firewall service if required
  • Check if caching or CDN is bypassing the block

Accidentally blocked yourself

  • Access DirectAdmin from another IP or network
  • Remove your IP from the block list immediately
  • Contact support if you are fully locked out

Not sure which IP to block

  • Check access logs in DirectAdmin
  • Identify repeated malicious or spam IPs
  • Look for unusual traffic patterns

Need Help?

If you are unsure which IPs are safe to block or need help configuring firewall rules, your hosting support team can assist with identifying malicious traffic and securing your server safely.

Top