diff --git a/.gitignore b/.gitignore
index 21eec71e7..0d8cd20ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,7 @@ docker/persist/*
vendor/*
attachments/*
temp/*
+!temp/.htaccess
uploads/*
# Ignore Mac DS_Store files
.DS_Store
diff --git a/temp/.htaccess b/temp/.htaccess
new file mode 100644
index 000000000..b83c671bb
--- /dev/null
+++ b/temp/.htaccess
@@ -0,0 +1,10 @@
+Options -ExecCGI -Indexes
+
+
+ Require all denied
+
+
+
+ Order deny,allow
+ Deny from all
+
diff --git a/temp/empty b/temp/empty
deleted file mode 100644
index e69de29bb..000000000