Disclosure: Hosting Canada is community-supported. We may earn a commission when you make a purchase through one of our links. Learn more.

To force the scripts for displaying as source code

To make the scripts to be displayed as source code, in place of executing it, for instance for allowing review, you can achieve this through Remove Handler functionality.

For enabling this, you need to make an .htaccess file by following the guidance and the instructions that include the text below.

RemoveHandler cgi-script .pl .cgi .php .py
AddType text/plain .pl .cgi .php .py