How to block country in DirectAdmin hosting

By | 2021-11-20T04:25:24+00:00 November 20th, 2021|

1) log in to the DirectAdmin Control Panel. 2) Got to file manager >> locate .htaccess file (/home/domainname/public_html/.htaccess) 3. Now right click on the .htaccess file and select Edit in the new tab. And then add the below-given code, click on the Save file icon. <IfModule mod_geoip.c> RewriteEngine on RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^US$ RewriteRule ^(.*)$ - [...]