Block visitors on website

Hi
I want to allow visitors on my website from an specific country only rest all the visitors should be blocked.

Hi, welcome to the Netlify Community forums! Try location based redirects: https://docs.netlify.com/routing/redirects/redirect-options/#redirect-by-country-or-language