Browser detection and redirecting

Because Elgg 1.8.x does not support IE6 anymore, but a lot of people in China are still using it, especially in the country side. I want to make a plugin, that detects which the browser that the visitor is using at some point and if the visitor is using IE6, redirect to a custom page that tell use to update their browser. Which pulgin hook or event should I use? I nend the redirection happens which ever page the user is trying to visit, not only the index page.