In order to redirect or ban particular countries or IP addresses, you can use the straightforward program OpenGeo. It will also arrange everything for you, so you do not require any coding knowledge. In addition, you can benefit a lot from this geolocation app, using the features provided by the team.