Redirect Domain According to Country IP address

Sometimes we need to redirect user to different website according to there country.
For Example we have 3 version of a website.
1 for usa visitors and 2nd version for Canada Users and 3rd for visitors from India.
In php we can do this by adding little code snippet.
Download ip_files folder and upload that folder in your website and add code in your index.php if your website.
In wordpress add folder in your current activated theme and add below code in your theme functions.php.

Form here Download

File that will be included in your website for getting IP addresses of Visitors.