Title: Remove RSS
Last modified: August 20, 2016

---

# Remove RSS

 *  [crzcas](https://wordpress.org/support/users/crzcas/)
 * (@crzcas)
 * [14 years ago](https://wordpress.org/support/topic/remove-rss-2/)
 * Hello,
 * My site is receiving many junk email (thousands) with low traffic. I am using
   WordPress with Lifestyle Child Theme. I am beginner in WordPress but I suppose
   that the origin of the junk email is RSS. I want to remove RSS feeds because 
   I prefer that the users, visit the site periodically. How can I remove all RSS
   from my site?
 * Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [14 years ago](https://wordpress.org/support/topic/remove-rss-2/#post-2771754)
 * Put this is your functions file
 *     ```
       function disable_all_feeds() {
          wp_die( __('Sorry, our content is not available by RSS. Please head over to <a href="'. get_bloginfo('url') .'">our site</a>') );
       }
   
       add_action('do_feed', 'disable_all_feeds', 1);
       add_action('do_feed_rdf', 'disable_all_feeds', 1);
       add_action('do_feed_rss', 'disable_all_feeds', 1);
       add_action('do_feed_rss2', 'disable_all_feeds', 1);
       add_action('do_feed_atom', 'disable_all_feeds', 1);
       ```
   
 *  Thread Starter [crzcas](https://wordpress.org/support/users/crzcas/)
 * (@crzcas)
 * [14 years ago](https://wordpress.org/support/topic/remove-rss-2/#post-2771844)
 * Hello Justin,
 * Thank you for your answer. I have added the function to disable all feeds in 
   the functions.php file.
 * In the last 4 days I have received more than 400 emails with low traffic. Now,
   I will observe if the junk emails decrease in the next 3 days.
 * Thanks again.
 * Regards
 *  Thread Starter [crzcas](https://wordpress.org/support/users/crzcas/)
 * (@crzcas)
 * [14 years ago](https://wordpress.org/support/topic/remove-rss-2/#post-2771892)
 * Hello again,
 * I have disabled all RSS, but now there are even more comments spam (near thousand
   in 2 days) in my WordPress website with low traffic. Also, I have configured 
   in Settings > Discussion to disable pingbacks and trackbacks but it will be for
   the new posts. The problem is the same with the old posts (many comments spam)
 * How can I disable pings or other variable for each old post to decrease the comments
   spam of these posts?
 * Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove RSS’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [crzcas](https://wordpress.org/support/users/crzcas/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/remove-rss-2/#post-2771892)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
