长治网站建设
apache php安全配置

httpd.conf 配置

<IfModule headers_module>
Header always append X-Frame-Options SAMEORIGIN
Header set X-Content-Type-Options nosniff
Header set X-XSS-Protection  "1; mode=block"
Header set Content-Secure-Policy "base-uri 'self';"
Header set Strict-Transport-Security "max-age=15768000;includeSubDomains;"
Header set Referrer-Policy "no-referrer"
Header set X-Permitted-Cross-Domain-Policies "master-only"
Header set X-Download-Options "noopen"
</IfModule>


<Location "/">
   AllowMethods GET POST 
</Location>

ServerTokens ProductOnly
ServerSignature Off
TraceEnable off



php.ini配置


session.cookie_httponly = 1
expose_php = Off



2006-2014 IT0355.com 山西中联科创科技有限公司. All Rights Reserved.
电话:0355-3728808 传真:0355-3728808
ICP备案号:晋ICP备06003721号本站已通过国际W3C认证
关键字:中联科创,长治网站建设,长治网站推广,长治网络工程,长治软件开发,山西网站建设,山西软件开发 长治五金网