Disable RSS, RDF and ATOM Feeds

To disable RSS, RDF and ATOM Feeds in WordPress, use the snippet below:

function snippet_disable_feed() {
    wp_die( __('Feed is disabled, please use our <a href="'. get_bloginfo('url') .'">Website</a>.'));
}

add_action('do_feed', 'snippet_disable_feed', 1);
add_action('do_feed_rdf', 'snippet_disable_feed', 1);
add_action('do_feed_rss', 'snippet_disable_feed', 1);
add_action('do_feed_rss2', 'snippet_disable_feed', 1);
add_action('do_feed_atom', 'snippet_disable_feed', 1);