Knowledge Base
Blocking IP addresses
If one address keeps abusing your site, you can block it.
- 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.
- 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
- Find addresses in the access log, see Viewing your website statistics.
- Security plugins on WordPress can also block IPs.
- Do not block your own address.