'How to sanitize/disallow SSI directives in HTML files

Is there a way to sanitize/disallow all SSI directives except what is already coded into the html files? I'm trying to prevent potential SSI injections. I can't seem to find any information on this.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source