From: Antonio Ospite Date: Thu, 16 Nov 2017 12:08:34 +0000 (+0100) Subject: new.sh: add a basic .htaccess file to protect sensible files X-Git-Tag: v0.1.0~12 X-Git-Url: https://git.ao2.it/drupal-init-tools.git/commitdiff_plain/9359efb8c4f5176d4a9f0a91a7461ae208c82efd?hp=cff72c7a42f6f2c661a6b18b6cf5dc5afc61f16e new.sh: add a basic .htaccess file to protect sensible files --- diff --git a/libexec/new.sh b/libexec/new.sh index 012c3cb..385c141 100755 --- a/libexec/new.sh +++ b/libexec/new.sh @@ -116,6 +116,17 @@ EOF echo echo "Uncomment and customize the values in the bootstrap.conf file." -echo "Make sure that access to '$PWD' is restricted by the web server." + +# Add some basic access control to protect sensitive files like bootstrap.conf +cat > .htaccess <