Deny Access to Backup and Source Files

Last modified: January 18, 2025
You are here:
Estimated reading time: < 1 min

These files may be left behind by certain text or HTML editors (such as Vi/Vim) and can present significant security risks if publicly accessible.

<FilesMatch “(\.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|swp)|~)$”>

## Apache 2.2

Order allow,deny

Deny from all

Satisfy All

## Apache 2.4

# Require all denied

</FilesMatch>

Was this article helpful?
Dislike 0
Views: 20

Braw Hosting Sales

Typically replies within a day

Hello, Welcome to the site. Please click below button for chatting me through Telegram.

Scroll to Top