tobimori / kirby-seo

🔎 All-in-one toolkit that makes implementing SEO & Meta best practices in your Kirby 4+ site a breeze

Home Page:https://plugins.andkindness.com/seo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to remove sitemap.xml header, description and footer for security

olivertedwards opened this issue · comments

Solid work on recent plugin developments, @tobimori — well done!

Two ideas/thoughts before your first release of the plugin:

  1. It would be great to have an option to disable the header and description element on the sitemap.xml page, because the section does not add anything valuable to the user accessing the page.
  2. I think I understand the intention of displaying the plugin information at the bottom of the sitemap.xml, but it also exposes information that could potentially be exploited from a security standpoint. At least, it’s something I would be wary of.
Screenshot 2024-03-07 at 22 35 30

Really appreciate your efforts, and please let me know if I can help you in any way.

Best, Oliver

If you need to, you can override the sitemap.xsl.php template and provide a custom rendering styleset for the sitemap.

Great suggestion, don’t know why I didn’t think of that already 🤣