To block selected IP addresses from accessing your website, you can add the following rules to your .htaccess file, typically located in your website’s root directory. Use the format:
</RequireAll>
Require all granted
Require not ip 123.456.789.000
Require not ip 111.222.333.000
</RequireAll>
Always make a backup of your .htaccess before editing. Changes take effect immediately.
To block selected countries, you can use this tool: https://www.ip2location.com/free/visitor-blocker
See also: https://httpd.apache.org/docs/2.4/howto/access.html#host
SAFE AND SECURE PAYMENT