How to use wp_die() to redirect to home page?

I have installed a plugin,I want to redirect the page to home page.
The code is like this:
if (!isset($_SERVER ['HTTP_REFERER']) || $_SERVER ['HTTP_REFERER'] == '')
wp_die(__('Please do not leech.', self::textdomain));
How to change to redirect to the index?