The function of this class is like Google that redirects users from countries that support google e.g. in UK when you enter google.com you will be redirected to google.co.uk and this is exactly what you can do with CountryDetector This class is builded in static context for purpose of best usage. Also it is very easy to implement