Skip to content
Back to skills

Cis Apache24 5.4

ASecurity

Ensure Default HTML Content Is Removed

  • 3,723 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added September 3, 2026
securitygobashsecurity

Works with

  • cli

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-apache24-5.4 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Apache24 5.4?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Apache24 5.4
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-apache24-5-4/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-apache24-5-4)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-apache24-5.4
description: "Ensure Default HTML Content Is Removed"
category: cis-apache
version: "2.3.0"
author: cyberstrike-official
tags: [cis, apache, linux, features, content, options]
cis_id: "5.4"
cis_benchmark: "CIS Apache HTTP Server 2.4 Benchmark v2.3.0"
tech_stack: [linux, apache]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# 5.4 Ensure Default HTML Content Is Removed

## Profile Applicability

- Level 1

## Description

Apache installations have default content that is not needed or appropriate for production use. The primary function for this sample content is to provide a default web site, provide user manuals or to demonstrate special features of the web server. All content that is not needed should be removed.

## Rationale

Historically these sample content and features have been remotely exploited and can provide different levels of access to the server. In the Microsoft arena, Code Red exploited a problem with the index service provided by the Internet Information Service. Usually these routines are not written for production use and consequently little thought was given to security in their development.

## Audit

Perform the following to determine if the recommended state is implemented:

1. Verify the document root directory and the configuration files do not provide for default `index.html` or welcome page.
2. Ensure the Apache User Manual content is not installed by checking the configuration files for manual location directives.
3. Verify the Apache configuration files do not have the Server Status handler configured.
4. Verify that the Server Information handler is not configured.
5. Verify that any other handler configurations such as `perl-status` is not enabled.

## Remediation

Review all pre-installed content and remove content which is not required. In particular look for the unnecessary content which may be found in the document root directory, a configuration directory such as `conf/extra` directory, or as a Unix/Linux package.

1. Remove the default index.html or welcome page if it is a separate package. If it is part of main Apache `httpd` package such as on Red Hat Linux, then comment out the configuration as shown below. Removing a file such as the `welcome.conf`, is not recommended as it may get replaced if the package is updated.

```apache
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
## <LocationMatch "^/+$"\>
##     Options -Indexes
##     ErrorDocument 403 /error/noindex.html
## </LocationMatch\>
```

12. Remove the Apache user manual content or comment out configurations referencing the manual

```bash
# yum erase httpd-manual
```

14. Remove or comment out any Server Status handler configuration.

```apache
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#
## <Location /server-status\>
##     SetHandler server-status
##     Order deny,allow
##     Deny from all
##     Allow from .example.com
## </Location\>
```

26. Remove or comment out any Server Information handler configuration.

```apache
#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
## <Location /server-info\>
##     SetHandler server-info
##     Order deny,allow
##     Deny from all
##     Allow from .example.com
## </Location\>
```

38. Remove or comment out any other handler configuration such as perl-status.

```apache
# This will allow remote server configuration reports, with the URL of
# http://servername/perl-status
# Change the ".example.com" to match your domain to enable.
#
## <Location /perl-status\>
##     SetHandler perl-script
##     PerlResponseHandler Apache2::Status
##     Order deny,allow
##     Deny from all
##     Allow from .example.com
## </Location\>
```

## Default Value

The default source build provides extra content available in the `/usr/local/apache2/conf/extra/` directory, but the configuration of most of the extra content is commented out by default. **In particular, the include of `conf/extra/proxy-html.conf` is not commented out in the `httpd.conf`.**

Also, the only other default content is a minimal barebones `index.html` in the document root which contains.

```html
<html>
  <body>
    <h1>It works!</h1>
  </body>
</html>
```

## CIS Controls

**Controls Version: v8**

- **9.4 Restrict Unnecessary or Unauthorized Browser and Email Client Extensions**
  - Restrict, either through uninstalling or disabling, any unauthorized or unnecessary browser or email client plugins, extensions, and add-on applications.
  - **IG 2:** •
  - **IG 3:** •

**Controls Version: v7**

- **7.2 Disable Unnecessary or Unauthorized Browser or Email Client Plugins**
  - Uninstall or disable any unauthorized browser or email client plugins or add-on applications.
  - **IG 2:** •
  - **IG 3:** •

## Profile

- Level 1 | Manual

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.