From 65e518856b80277488502a6cb0202a4c26754c72 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 6 Jan 2018 10:25:21 +0100 Subject: [PATCH] Add warning message to index. --- .htaccess | 10 ++++++---- index.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 index.php diff --git a/.htaccess b/.htaccess index 1b80a6b43d..006074f2ea 100644 --- a/.htaccess +++ b/.htaccess @@ -1,7 +1,9 @@ -# To force HTTPS -RewriteEngine On -RewriteCond %{HTTPS} off -RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] +# Optional: force HTTPS: +# +# RewriteEngine On +# RewriteCond %{HTTPS} off +# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] +# # To hide directory listing Options All -Indexes diff --git a/index.php b/index.php new file mode 100644 index 0000000000..811130c7c4 --- /dev/null +++ b/index.php @@ -0,0 +1,54 @@ +. + */ + +declare(strict_types=1); + +echo ' + + + + + + Firefly III + + + +

+ Danger! This directory should not be open to the public! +

+

+ /public/ should be the document root of your web server. +

+

+ Leaving your web server configured like this is a huge security risk. +

+

+Please read more on the Github help pages. +

+ + +'; \ No newline at end of file