fastread homefastrread library fastread menu

htaccess : Forcing scripts to display as source code

Tutorial by:Shenila      Date: 2016-05-18 03:22:15

❰ Previous Next ❱

If you need to display scripts as source code, instead of executing, for example to allow review, this can be achieved with the Remove Handler function
 
To enable this, create a .htaccess file following the main instructions and guidance, and include the following text:
 

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

❰ Previous Next ❱