public static function FileSecurity::webConfigLines in Drupal 9
Same name in this branch
- 9 composer/Plugin/VendorHardening/FileSecurity.php \Drupal\Composer\Plugin\VendorHardening\FileSecurity::webConfigLines()
- 9 core/lib/Drupal/Component/FileSecurity/FileSecurity.php \Drupal\Component\FileSecurity\FileSecurity::webConfigLines()
Same name and namespace in other branches
- 8 composer/Plugin/VendorHardening/FileSecurity.php \Drupal\Composer\Plugin\VendorHardening\FileSecurity::webConfigLines()
Returns the standard web.config lines for security.
Return value
string The contents of the web.config file.
1 call to FileSecurity::webConfigLines()
- FileSecurity::writeWebConfig in composer/
Plugin/ VendorHardening/ FileSecurity.php - Writes a web.config file in the given directory, if it doesn't exist.
File
- composer/
Plugin/ VendorHardening/ FileSecurity.php, line 124
Class
- FileSecurity
- Provides file security functions.
Namespace
Drupal\Composer\Plugin\VendorHardeningCode
public static function webConfigLines() {
return <<<EOT
<configuration>
<system.webServer>
<authorization>
<deny users="*">
</authorization>
</system.webServer>
</configuration>
EOT;
}