User Tools

Site Tools


web:rss_forwarder

Rss Forwarder

Some RSS feed readers get blocked or rate limited on certain websites, one way of working around this is to forward the RSS feed from another site. An example is Feedly with some Reddit feeds.

  • Using the File Manager in the cpanel at example.heliohost.org/cpanel
  • Create a new folder in the public_html folder with a name such as rss
  • For each RSS feed to be forwarded
    • Create a new php file with an informative name
    • Copy the code below into the file, filling in the correct URL
    • Add the URL of the php file to your RSS feed reader e.g. example.heliohost.org/rss/RSSFeed.php
<?php
header('Content-Type: application/xml; charset=utf-8');
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
 
echo file_get_contents("<Insert URL of RSS feed here>");
web/rss_forwarder.txt · Last modified: 2019/09/19 07:48 by derek