tourze/symfony-fake-server-bundle

返回伪装的Server头信息

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/tourze/symfony-fake-server-bundle

1.0.0 2025-11-01 19:26 UTC

This package is auto-updated.

Last update: 2025-11-02 05:17:40 UTC


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