Code Snippet </> Info
Snippet Name: Instruct server to display source code for dynamic file types
Description: There are many situations where site owners may wish to display the contents of a dynamic file rather than executing it as a script. To exercise this useful technique, create a directory in which to place dynamic files that should be displayed rather than executed, and add the following line of code to the .htaccess file belonging to that directory.
Note: This method is known to work for .pl, .py, and .cgi file-types.
Author:
Last Modified: 2014-05-18 18:34:28
Language: .htaccess
Highlight Mode: html
|
Copy Codes: Use Free Notepad ++ |
|
Snap HTML Code Editor: Paste the source code, make changes and instantly see it in live preview. Snap HTML Code Editor
|
|
Copied To Clipboard!
# Remove Handler
RemoveHandler cgi-script .pl .py .cgi
|