Define a policy to manage RSS feeds?
search cancel

Define a policy to manage RSS feeds?

book

Article ID: 166375

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

Because RSS feeds typically use HTTP, and are categorized based on the domain from which they are served, writing policy to handle them (for purposes of authentication exemptions, caching decisions, permission or bandwidth management) is not obvious.  However, RSS feeds identify themselves in the HTTP response header as traffic is returned to the user and we can use this to write policy on the ProxySG.

In content policy language, a destination to match against RSS content appears as follows:

response.header.Content-Type="application/rss+xml"

 

Resolution

Here's how to create the same object in the visual policy manager:

  • Open a web access layer and create a new rule.
  • Set the destination of the rule to a New > Response Header
  • Name the response header
  • Select 'Content-type' from the header name drop-down menu
  • Define the header RegEx as: application/rss+xml
  • click ok, ok then proceed to define the intended source and/or action for this rule
  • Install policy.