RSS Feed Macro

Add the RSS Feed macro to a page to display the contents of an external or internal RSS feed. For example, to display blog posts or to list recently updated pages in a space, you can create an internal feed in the Feed Builder, then render it using this macro.

This is a legacy macro, and is often disabled by Confluence administrators for security reasons. 

On this page:

Security considerations

The RSS Feed macro may be disabled by your Confluence administrator. Also, your Confluence administrator can define a list of trusted URLs. You will see an error message on the Confluence page, if the included URL is not in the allowlist.

CAUTION: Including unknown HTML inside a webpage is dangerous.

HTML inside an RSS feed can contain active scripting components. This means that it would be possible for a malicious attacker to present a user of your site with script that their web browser would believe came from you. Such code could be used, for example, to steal a user's authentication cookie and give the attacker their Confluence login password.

Add this macro to your page

To add the RSS Feed macro to a page:

  1. Error rendering macro 'includeplus'

    User 'anonymous' does not have permission to view the page with ID 993925286.

  2. Choose RSS Feed from the External content category.
  3. Enter the RSS feed URL.
  4. Choose Insert

You can then publish your page to see the macro in action. 

Change the macro parameters

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

Here's a list of the parameters available in this macro. 

Parameter

Default

Description

RSS Feed URL
(url

none

The URL of the RSS feed link you want to show.

Maximum Number of Entries
(max

15

Limit the number of entries displayed.

Show Item Titles Only
(showTitlesOnly

false

Show only the titles of the news items, not the content.

Show Name/Title of RSS Feed
(titleBar

true

Hide the feeds title bar.

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

How up to date is the feed? 

By default, the RSS Feed macro caches the feed results for 60 minutes before fetching the data again.

If you wish to change the default caching, use the Cache macro to define how often the RSS Feed macro fetches the feed updates. You will need to install the Cache plugin onto your Confluence site.

What happens to a page containing a disallowed URL?

Your Confluence Administrator can set up an allowlist of allowed URLs. If this is the case, you may see an error on the pages which contain the RSS Feed macro.

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

Authentication

Private feeds from external sites

RSS feeds which require authentication cannot be accessed using the RSS Feed macro.

Accessing internal HTTPS feeds

This applies only to Confluence instances which have enabled HTTPS for all content. If your site is fully HTTPS, the RSS Feed macro cannot access internal feeds. To enable the RSS Feed macro to access internal feeds without affecting your HTTPS setup, enable local-only HTTP access:

  1. Shut down Confluence.
  2. Consult the SSL guide to enable HTTP access to Confluence. You'll want to ensure that you have an HTTP connector and an SSL connector, both commented in. This means that Confluence will be accessible via both HTTP and HTTPS. However, you should not have a redirect port, nor rules in web.xml to redirect all traffic.
  3. Instead of using web.xml to redirect traffic, insert a firewall rule to redirect all HTTP requests not from the Confluence server to the equivalent HTTPS URL. This ensures that users will only be able to access Confluence via HTTPS, as intended. If you have still left HTTP access for attachments enabled (to avoid the IE download bug) you must selectively enable those URLS as well.
  4. Modify your Confluence RSS Feed macro feed link to use the HTTP URL, and restart Confluence.

Enable or disable the RSS Feed macro

To enable or disable the RSS Feed macro:

  1. Go to 

    Error rendering macro 'excerpt-include'

    User 'null' does not have permission to view the page.

    .
  2. Select System from the drop down and search for the Confluence HTML Macros system app.
  3. Expand the listing and enable or disable the rss (rss-xhtml) module.

Other ways to add this macro

Add this macro as you type

Error rendering macro 'includeplus'

User 'anonymous' does not have permission to view the page with ID 993925310.

Add this macro using wiki markup

Error rendering macro 'includeplus'

User 'anonymous' does not have permission to view the page with ID 1003131187.

Macro name: rss

Macro body: None.

{rss:max=10|showTitlesOnly=true|url=http://myblog.com/feed|titleBar=false}
Last modified on Oct 6, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.