How to deny access to the website to a specific country, but leaving the option of entering a password?

How to deny access to a specific country using htaccess, but they came out a dialog box for entering the password?
June 27th 19 at 15:34
2 answers
June 27th 19 at 15:36
Solution
there is such a unique, but unreliable method is called geoip.
June 27th 19 at 15:38
Put the GEOIP module for Nginx to do the redirect on the login form.

Find more questions by tags PHP