Code for redirecting

This plugin for detecting browsers was recommended.
What to put inside {do stuff} for redirecting the page, blocking the browser, or displaying a message please?