RSS Feeds

Really Simple Syndication (RSS) feeds enable users to view your website page or post content in a format that works with content aggregation tools and software. 

WordPress supports various types of feeds with RSS being the most common: https://codex.wordpress.org/WordPress_Feeds

Feed URL

By default, your WordPress website will create accessible feed links:

http://example.com/?feed=rss
http://example.com/?feed=rss2
http://example.com/?feed=rdf
http://example.com/?feed=atom

And if you’ve enabled custom permalinks:

http://example.com/feed/
http://example.com/feed/rss/
http://example.com/feed/rss2/
http://example.com/feed/rdf/
http://example.com/feed/atom/

Valice will disable these on WordPress installations that we configure using our ValiceWP security plugin. If you would like this enabled, enter the following filter in your WordPress theme’s functions.php file: Proper file backups and developer experience is recommended to make this change. Please contact Valice WordPress support for assistance if you do not feel comfortable making this change.

add_filter('valicewp_enable_post_feeds', __return_true);

Disable Feeds

If your RSS feeds are available and you would like to disable them, you can add this code to your WordPress theme’s functions.php file: Proper file backups and developer experience is recommended to make this change. Please contact Valice WordPress support for assistance if you do not feel comfortable making this change.

function themename_disable_feed() {
wp_die( __( 'No feed available, please visit the homepage!' ) );
}
add_action('do_feed', 'itsme_disable_feed', 1);
add_action('do_feed_rdf', 'itsme_disable_feed', 1);
add_action('do_feed_rss', 'itsme_disable_feed', 1);
add_action('do_feed_rss2', 'itsme_disable_feed', 1);
add_action('do_feed_atom', 'itsme_disable_feed', 1);
add_action('do_feed_rss2_comments', 'itsme_disable_feed', 1);
add_action('do_feed_atom_comments', 'itsme_disable_feed', 1);

remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );

If you prefer remote hands from a friendly Valice support professional to assist you, we have membership plans for that. Or if you just want one-time help, click here to schedule a session.