diff --git a/.htaccess b/.htaccess index 0ad7be3..5248bd8 100644 --- a/.htaccess +++ b/.htaccess @@ -3,7 +3,7 @@ # # Protect files and directories from prying eyes. - + Require all denied diff --git a/core/modules/system/src/Tests/System/HtaccessTest.php b/core/modules/system/src/Tests/System/HtaccessTest.php new file mode 100644 index 0000000..3335033 --- /dev/null +++ b/core/modules/system/src/Tests/System/HtaccessTest.php @@ -0,0 +1,31 @@ +drupalGet('core/core.services.yml'); + $this->assertResponse(403); + // Try accessing a core module YAML file. + $this->drupalGet('core/modules/system/system.services.yml'); + $this->assertResponse(403); + } + +} diff --git a/web.config b/web.config index b71c37c..b072d9b 100644 --- a/web.config +++ b/web.config @@ -22,7 +22,7 @@ - +