PathDenyFilter

Name

PathDenyFilter -- Disallow new files which match a specified pattern

Synopsis

PathDenyFilter [ PathDenyFilter regular-expression]

Default

None

Context

server config, <VirtualHost>, <Anonymous>, <Global>, <Directory>, .ftpaccess

Module

mod_core

Compatibility

1.1.7 and later

Description

Similar to PathAllowFilter, PathDenyFilter specifies a regular expression which must not match any uploaded pathnames. If the regex does match, a "Forbidden filename" error is returned to the client. This can be especially useful for forbidding .ftpaccess or .htaccess files.

See also

PathAllowFilter

Examples

# We don't want .ftpaccess or .htaccess files to be uploaded
PathDenyFilter "(\\.ftpaccess|\\.htaccess)$"