From e99e96527b01e51b7c8da3dfa8d7ecdfb5c02989 Mon Sep 17 00:00:00 2001 From: Thomas Wood <thomas.wood09@imperial.ac.uk> Date: Fri, 27 Jan 2017 13:18:00 +0000 Subject: [PATCH] Disable directory indexes --- .htaccess | 2 ++ 403.md | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 403.md diff --git a/.htaccess b/.htaccess index 64301db..21f0b59 100644 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,5 @@ CheckSpelling Off +Options -Indexes RewriteEngine on @@ -15,4 +16,5 @@ RewriteRule ^ca($|/) http://psvg.doc.ic.ac.uk/research/concurrency.html [R=301,L RewriteCond %{HTTP_HOST} !=psvg.doc.ic.ac.uk RewriteRule ^(.*)$ http://psvg.doc.ic.ac.uk/$1 [R=301,L] +ErrorDocument 403 /403.html ErrorDocument 404 /404.html diff --git a/403.md b/403.md new file mode 100644 index 0000000..3c30261 --- /dev/null +++ b/403.md @@ -0,0 +1,7 @@ +--- +layout: page +title: "Error 403: Page Not Found" +permalink: /403.html +--- + +Oops :(. This page is not verified, therefore clients should not access it. -- GitLab