RSS footer

  • Hello,

    I am just figuring out ways to protect my blog content from being scraped or copied and was wondering if it is possible to add a copyright footer + url to the RSS feed through RankMath?

    Just in case our RSS feed would get scraped to have the copyright notice and link to the original content automatically added to the footer of our RSS and displaying on the copied blog.

    Thank you for your help.

    Kind regards,
    Kat

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math.

    Yes this is possible with Rank Math. You can use the below filter to add custom content to each feed item. The code should be used and customized within your functions.php file:

    /**
     * Filter code to change content after RSS feed item
     *
     * @param string $content The content set in Settings.
     */
    add_filter( 'rank_math/frontend/rss/after_content', function( $content ) {
    	return $content ;
    });

    You can also include the custom text via the admin GUI by navigating to Rank Math > General Settings > Others

    Looking forward to helping you. Thank you.

    ​​​​​​

Viewing 1 replies (of 1 total)

You must be logged in to reply to this ticket.