We’re happy to announce a new feature for our hosting customers — GeoLocation support is now available!
What is GeoLocation?
GeoLocation lets your website detect where visitors are coming from — specifically, their country — based on their IP address.
Where is it available?
This feature is currently available only on LiteSpeed-based servers.
What can you do with GeoLocation?
With GeoLocation and .htaccess rules, you can: Limit access to your entire website or specific folders by country, protect your site from unwanted or suspicious traffic. It eliminates the need to use premium (paid) WordPress security plugins like the premium version of Wordfence. GeoLocation gives you more control over who can access your site, helping keep it secure — all at no extra cost!
Examples:
1. Add this code in the top of .htaccess file to allow the visitors from US and Canda only to visit your website.
2. Add this code in the top of .htaccess file to allow visitors from all countries except US and Canada
3. Redirect based on Country