ColinOL

A Small Website

用户工具

站点工具


wiki:drupal:drupal-trusted-host

Drupal 信任主机设置

trusted_host_patterns 设置为允许 ^www\.example\.com$

修改 sites/default/settings.php 添加如下代码

$settings['trusted_host_patterns'] = array(
'^www\.example\.com$',
);

参考Protecting against HTTP HOST Header attacks

wiki/drupal/drupal-trusted-host.txt · 最后更改: 2018/02/04 23:36 由 colin