WordPress — блоговый движок. Неотъемлемой частью блога, является лента RSS. Стандартными функциями её нельзя отключить. Но иногда, это требуется сделать. Например, у меня есть опыт создания сайтов-визиток на wordpress и других проектов. Там RSS лента мне не нужна. И хочется прикрыть, это уязвимое место, от растаскивания контента сплогерами.
Свою ленту отключать не планирую, так что вы всегда можетесь подписать на обновления блога по RSS.

Я расскажу о двух способах, как это сделать: вручную и с помощью специального плагина.
Отключение RSS ленты на блоге вручную:
Это решение нашел на одном форуме. В файле function.php вашей темы нужно добавить следующий код:
function fb_disable_feed() {
wp_die( __('No feed available,please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!') );
}
add_action('do_feed', 'fb_disable_feed', 1);
add_action('do_feed_rdf', 'fb_disable_feed', 1);
add_action('do_feed_rss', 'fb_disable_feed', 1);
add_action('do_feed_rss2', 'fb_disable_feed', 1);
add_action('do_feed_atom', 'fb_disable_feed', 1);
Теперь при просмотре ленты rss будет выдаваться: «No feed available,please visit our homepage!»
И не забудте в robots.txt дописать:
User-agent: * Disallow: /feed/
Отключение RSS ленты с помощью плагина Disable RSS:
Тут все намного проще. Скачиваем плагин Disable RSS. Устанавливаем его и готово! Вот так все просто
Похожие записи:




Спасибо за статью, как раз делаю клиентский сайт, нужно отключить rss
Сначала фид интегрируют с движком, потом ищут способы его отключить.. Забавно. По мне, так для безопасности контента достаточно ограничиться выдачей в ленту лишь анонса поста (стандартными настройками WP: Настройки чтения). А саму ленту распихать по RSS-каталогам, таким образом ускоряется индексация, и право уникального контента будет за вами
Материал очень кстати. Для сателитов тоже RSS не нужен.
Это смотря какой сателлит. Если сателлит типа дор, конечно нафик не нужен. А если сателлит типа блог, то без RSS не солидно. Как блогу без RSS? Не в один рейтинг блогов не записаться. Поиск по блогам Яндекса вообще под блогом подразумевает его RSS.
Спасибо, но у меня нет надписи «No feed available,please visit our homepage!» просто белая страница
Even if all members of ones own see 1 another every day, connecting remains to be important. That is basically the obvious way to reinforce the call among the list of relatives and also make your romance to each other more powerful. It’s really terrific to behave exterior but in case the climatic conditions is certainly not superior or if it is really seeing external, you can think about various kinds of indoor games and actions that may definitely make every person feel happy. This is a good substitute that you may remember to consider. The following are some of the activities and the things to do which can be done indoors.Hide and go seek is amongst the most favored video games possibly enjoyed and this really can be achieved inside. Someone has to be an In .it» that happen to be dependable of trying to find other family members who definitely are hiding. Solution . which will be located without the need of coming in contact withOrachieving the house base might function as the future Half inchit.Half inch But if you’re believe this is not an excellent option, you may check into charade which is yet another indoor online game. On this game, essentially, there must be two groups. You will have a user which will make a scene the phrase that’s published on a piece of paper even though the people have been around in-handle of estimating the phrase. The c’s with more items might be announced as being the safe bet.Aside from hide and seek and charade, quite a number of minute card and board games are usually one of the great choices you could explore. Card games contain Menagerie, Previous Cleaning service, Going, Rock, Slapjack and many others. For games, you can choose Scrabble, Chess, Monopoly, Family Feud and Pieces. As you have a lot of options to look at, simply pick one which you imagine is actually exciting.On the other hand, if you think that trying to play the activities which are mentioned previously will never be sufficiently good, it is possible to decide on other pursuits which almost all the members of the family have hobbies and interests in. As an example, if you value to cook/farrenheit as a way young kids, you’ll be able to make this task so as to attachment with the family. You’ll be able to allocate each and every fellow member to complete a specific the main the bakingVersuscooking food approach to ensure everyone will enjoy. Be sure that anyone actually gets to be involved in like action. And when your meals are prepared or the food is cooked, you’ll be able to consume it in concert with all the family. All people will truly be thrilled to enjoy the fresh fruits of the job. Apart from food preparationOrbaking, additionally you can take into consideration other sorts of pursuits like painting, moving, vocal range, examining, enjoying movies and a lot of much more.These are simply really approaches to bond with your loved ones but these can be extremely efficient. There’s no need for yourself shell out some huge cash as these basic elements can unquestionably take enjoyment to everybody particularly family is finish. It isn’t definitely necessary that this stuff carried out on a daily basis. Once weekly or simply a rare occasions a month is going to do.
Even if all people of your family see the other day-to-day, connecting is still needed. This really is essentially the easiest way to enhance the link among the list of relatives and even build your romance one to the other healthier. It’s great some thing outside but in case the weather isn’t that very good or maybe it really is seeing external, you can think about a variety of in house video games and pursuits that can genuinely make all people feel happy. This is an excellent different that you may remember to consider. In this article are some of the online games and the exercises you’re able to do in the house.Hide and seek has become the most widely used games at any time played and also this really can be practiced inside. Somebody should be an In .itHalf inch who will be liable of trying to find other loved ones who are camouflaging. The first that will be discovered with out in contact withAndattaining your home basic will be the up coming Half inchit.Half inch But when you are believe this may not be a good option, it is possible to take a look at charade which is a different indoor sport. With this game, if at all possible, there must be two organizations. There will be a user that should make a scene the phrase that is definitely published on a piece of paper even though the folks will be in-management of estimating your message. The group with the most factors might be stated because victor.Aside from hide and seek and charade, a lot of avenues of unit card and games may also be one of the excellent options you can explore. Cards involve Menagerie, Older House maid, Running, Diamond, Slapjack and many more. For games, you can go for Scrabble, Chess, Monopoly, Spouse and children Feud and Pieces. Since you have plenty of choices to think about, you just have to pick one which you imagine really is enjoyment.However, if you think trying to play the online games that have been already mentioned aren’t going to be good enough, you may go for other pursuits which almost all the loved ones have likes and dislikes in. For instance, if you’d prefer to cookAndfarrenheit whilst your family, then you can certainly get this pastime as a way to attachment with the family. You are able to designate every single new member to do a particular area of the the baking/preparing food approach making sure that absolutely everyone will like. Make certain that absolutely everyone grows to take part in like hobby. Whenever cuisine is made or wedding cake is prepared, you may feed on it jointly with all the current members of the family. Every person will certainly be content to nibble on the fresh fruit of their total work. In addition to food preparationVersusthe baking, you can also contemplate several other pursuits like painting, belly dancing, singing, reading through, viewing films many a lot more.Mentioned very solutions for attachment with the family but these really are successful. You don’t have for you personally spend some huge cash because they straightforward items can certainly get enjoyment to everyone particularly household is complete. It isn’t actually critical that these materials should be carried out everyday. Once or perhaps a rare occasions each month are going to do.
для отключения rss достаточно прописать «-1″ в
чтение – В RSS-лентах отображать последние «-1″ элементов.