I need to deny access on a website at a specific country, but allow to bypass via .htaccess authentication
I found this website https://www.ip2location.com/blockvisitorsbycountry.aspx
where I can download an .htaccess that deny access from a specific country, but I'm not sure if is possible to add the ability to proceed with a user / password
<Limit GET HEAD POST>
order allow,deny
allow from all
deny from 123.456.789.0/255
</Limit>
placing this in root folder would also deny access to Google Robots outside that country?