Adding IP rules to your .htaccess file lets you limit who can see your website based on where they are from. This helps keep unwanted traffic, spam, and malicious access to a minimum.
Go to the Country IP Blocks website.
Choose the countries you want to block or let through.
In the Select Format section, pick one of these:
Apache .htaccess Deny—to keep certain countries out
Apache .htaccess Allow—only allow certain countries
Click Create ACL.
When you click Create ACL, the Access Control List (ACL) that was made will show up on the right side of the page.
Press the Copy ACL to Clipboard button.
The ACL will look something like this:
Deny from 1.0.0.0/8
Deny from 2.16.0.0/13Sign in to cPanel.
Start File Manager.

Go to public_html/.
Change the .htaccess file.

At the bottom of the file, paste the ACL rules you copied.
Keep the changes.
Before you change your .htaccess file, always make a copy of it.
Changes happen right away.
Countries that block users may also block real users from those countries.
If you don't know which option to choose or need help changing your .htaccess file, get in touch with the Cyberin support team.