tourze/symfony-fake-server-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tourze/symfony-fake-server-bundle

最新稳定版本:1.0.1

Composer 安装命令:

composer require tourze/symfony-fake-server-bundle

包简介

返回伪装的Server头信息

README 文档

README

English | 中文

A Symfony bundle that returns fake server headers to deceive scanners and perform invalid scans.

Installation

composer require tourze/symfony-fake-server-bundle

Quick Start

  1. Add the bundle to your config/bundles.php:
<?php

return [
    // ...
    Tourze\FakeServerBundle\FakeServerBundle::class => ['all' => true],
];
  1. The bundle will automatically register the event subscriber and start adding fake server headers to responses.

Usage

The bundle automatically adds a fake Server header to HTTP responses that don't already have one. It randomly selects from a predefined list of common server types to help mask the actual server technology.

Available Fake Server Headers

  • cloudflare
  • Windows-Azure-Web/1.0
  • Microsoft-HTTPAPI/2.0
  • Tengine
  • nginx
  • marco/3.2
  • JSP3/2.0.14
  • Microsoft-IIS/10.0

Example

When a request is made to your application, the response will include a randomly selected server header:

HTTP/1.1 200 OK
Server: nginx
Content-Type: text/html; charset=UTF-8
...

Configuration

This bundle works out of the box with no configuration required. The fake server headers are automatically applied to all responses.

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-02