How to block IP?

If you think that your web space is maliciously compromised,
You can try to block his IP
* Please note that many people do not have a fixed IP, so blocking an IP may also block others at the same time.

There are two ways to block IP

1. Go to “Block IP Management” in CPANEL to enter the IP you want to block.

2. Modify the .htaccess file
Go to the folder where you want to block him. For example, if you want to make him unable to enter the station, you can modify its .htaccess file under public_html. You can go to CPANEL to change the file manager and put the following message into the .htaccess file.
Order Allow, Deny
Allow from all
Deny from 111.111.111.111

Replace that bunch of numbers with the IP you want to block.
If you want to block multiple IPs, you can change it to
Order Allow, Deny
Allow from all
Deny from 111.111.111.111
Deny from 222.222.222.222

If you want to block an IP range, you can change it to
Order Allow, Deny
Allow from all
Deny from 111.111

This means that all IPs starting with 111.111 are blocked.

For IP blocking, please use carefully, thank you

Leave a Reply

Your email address will not be published. Required fields are marked *