I recently hosted my website using github static pages. I am very new to web related things. I found that using .htaccess
file we can block certain countries simply using SetEnvIf CF-IPCountry RU BuzzOff=1
.
But .htaccess
is not supported for github pages. There is a workaround for redirecting web pages.
When I google for blocking access to certain countries for github pages all I get is which countries have blocked github and what github did to undone the block.
Is there a simple way to block website for certain country? Its not about privacy. But I am having unnecessary large no.of visitors from certain country and its very annoying to use Google Analytics because of it.