SP.Web.allowRssFeeds property (sp.js)

Gets a value that specifies whether the site allows RSS feeds.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Web.get_allowRssFeeds ()

Return value

Type: Boolean

true if RSS feeds are allowed; otherwise, false.


The following example creates an input button on an application page that displays a syndication audit results log.

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<script type="text/ecmascript" language="ecmascript">

    var webCollection;

    function runCode() {
        var clientContext = new SP.ClientContext.get_current();
        if (clientContext != undefined && clientContext != null) {
            var web = clientContext.get_web();
            this.webCollection = web.get_webs();
            clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));

    function onQuerySucceeded() {
        var doc = new ActiveXObject('Msxml2.DOMDocument.3.0');
        var root = doc.appendChild(doc.createElement('SyndicationAuditResults'));
        var webEnumerator = this.webCollection.getEnumerator();
        while (webEnumerator.moveNext()) {
            var subWeb = webEnumerator.get_current();

            var siteName = root.appendChild(doc.createElement('site'));
            siteName.setAttribute('title', subWeb.get_title());

            // Set any other SP.Web properties, such as the title, as attributes of the element.
            //siteName.setAttribute('url', webEnumerator.get_title());   

            var syndicationAudit = siteName.appendChild(doc.createElement('SyndicationResults'));

            var compileSyndicationStatus = '';

            // Use the allowRssFeeds property to determine whether the site allows RSS feeds.
            if (subWeb.get_allowRssFeeds()) {
                compileSyndicationStatus += "RSS Feeds Allowed! | ";
            else {
                compileSyndicationStatus += "RSS Feeds Not Allowed! | ";

            // Use the syndicationEnabled property to test whether the RSS feeds enabled on the site.
            if (subWeb.get_syndicationEnabled()) {
                compileSyndicationStatus += "RSS Syndication Is Enabled!";
            else {
                compileSyndicationStatus += " RSS Syndication Is Not Enabled!";
            syndicationAudit.setAttribute('result', compileSyndicationStatus);
        var str = doc.xml;
        alert('Syndication audit results log: \n\n' + str);

    function onQueryFailed(sender, args) {
        alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());


    <input id="Button1" type="button" value="Run Code" onclick="runCode()" />


REST resource endpoint

See Web resource for more information.

Endpoint URI structure


HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/allowRssFeeds

GET syntax

GET http://<sitecollection>/<site>/_api/web/allowRssFeeds