Skip to content
Back to skills

Cis Apache 5.10

ASecurity

Ensure Access to .ht* Files Is Restricted

  • 2,182 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
securitygo

Works with

  • cli

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-apache-5.10 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Apache 5.10?

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

Security grade badge for Cis Apache 5.10
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-apache-5-10/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-apache-5-10)

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-apache-5.10
description: "Ensure Access to .ht* Files Is Restricted"
category: cis-apache
version: "3.6.0"
author: cyberstrike-official
tags: [cis, apache, linux, features, content]
cis_id: "5.10"
cis_benchmark: "CIS Apache HTTP Server 2.2 Benchmark v3.6.0"
tech_stack: [linux, apache]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# Ensure Access to .ht\* Files Is Restricted

## Description

Restrict access to any files beginning with `.ht` using the `FilesMatch` directive.

## Rationale

The default name for the access file which allows files in web directories to override the Apache configuration is `.htaccess`. The usage of access files should not be allowed, but as a defense in depth a `FilesMatch` directive is recommended to prevent web clients from viewing those files in case they are created.

Also, common names for web password and group files are `.htpasswd` and `.htgroup`. Neither of these files should be placed in the document root, but in the event they are, the `FilesMatch` directive can be used to prevent them from being viewed by web clients.

## Audit Procedure

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

Verify that a `FilesMatch` directive similar to the one below is present in the Apache configuration and not commented out.

```
<FilesMatch "^\.ht">
  Order allow,deny
  Deny from all
</FilesMatch>
```

## Remediation

Perform the following to implement the recommended state:

Add or modify the following lines in the Apache configuration file at the server configuration level:

```
<FilesMatch "^\.ht">
  Order allow,deny
  Deny from all
</FilesMatch>
```

## Default Value

`.ht*` files are not accessible

## References

1. https://httpd.apache.org/docs/2.2/mod/core.html#filesmatch

## CIS Controls

**Version 6**

18.3 Sanitize Input For In-house Software
For in-house developed software, ensure that explicit error checking is performed and documented for all input, including for size, data type, and acceptable ranges or formats.

**Version 7**

18.2 Ensure Explicit Error Checking is Performed for All In-house Developed Software
For in-house developed software, ensure that explicit error checking is performed and documented for all input, including for size, data type, and acceptable ranges or formats.

## Profile

Level 1 | Scored
Level 2 | Scored

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.

Comments

Loading comments…