Menu Close

How to Make Scripts Display as Source Codes Using htaccess file ?

If you want all your cgi, php, perl, py scripts not to run, but just display as source code. htaccess fil can help you by using RemoveHandler finction.

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

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

See also  Adding MIME Types by .htaccess file