


php.ini配置-隐藏PHP程序响应头信息中的PHPSESSION和X-Powered-By: PHP/5.2.1之类的信息
php.ini配置---隐藏PHP程序响应头信息中的PHPSESSION和X-Powered-By: PHP/5.2.1之类的信息
虽然这在安全上我个人觉得这没什么作用,但有时候实际应用中还是有这样的需求,就我们目前做的项目,我们其实不想暴露我们用什么开发的,所以这对于一些对技术不是很精通的人来讲,这能敷衍一下,我说我是java做的人家也未必知道!
在php.ini文件中设置:
找到
expose_php = On
改成
expose_php = Off
这样就不会出现头信息中的
X-Powered-By: PHP/5.2.1
找到
session.name = PHPSESSID
改成:
session.name = SESSIONID
这样头信息中就不会出现 PHPSESSID 怎样的字眼了

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Validator can be created by adding the following two lines in the controller.

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.
