Skip to content

Knowledge Base

Blocking IP addresses

If one address keeps abusing your site, you can block it.


  1. Log into DirectAdmin and open IP Management, Block IP or Password Protected Directories, depending on your theme. Look for the option to block an address.
  2. Enter the IP address or range and save.

With a file

Add this to .htaccess in public_html:

Require not ip 203.0.113.50

Tips

Please rate this article to help us improve our Knowledge Base.

0 0