changeset 42:f8c8f05bb4cc

Mark Python files as forbidden. People could executed them before by downloading them!
author Martin Geisler <mg@daimi.au.dk>
date Wed, 20 Feb 2008 22:44:49 +0100
parents 65041ee232ea
children 43f18d1dc913
files .htaccess
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.htaccess	Wed Feb 20 22:34:31 2008 +0100
+++ b/.htaccess	Wed Feb 20 22:44:49 2008 +0100
@@ -7,3 +7,6 @@
 
 # Rewrite /docs/ to /doc/.
 RewriteRule  ^docs(.*)$  doc$1 [R=permanent]
+
+# Forbid Python files from being downloaded (or worse: executed!).
+RewriteRule  ^.*\.py$ [F]