<-
Apache > HTTP Server > Documentation > Modules

Apache Module mod_authn_anon 28595

Available Languages:  ko 

Description: Allows "anonymous" access to authenticated areas
Status: Extension
Module Identifier: authn_anon_module
Source File: mod_authn_anon.c
Compatibility: Available in Apache 2.1 and later

Summary 6m2os

This module provides authentication front-ends such as mod_auth_basic to authenticate s similar to anonymous-ftp sites, i.e. have a 'magic' id 'anonymous' and the email address as a . These email addresses can be logged.

Combined with other (database) access control methods, this allows for effective tracking and customization according to a profile while still keeping the site open for 'uned' s. One advantage of using Auth-based tracking is that, unlike magic-cookies and funny URL pre/postfixes, it is completely browser independent and it allows s to share URLs.

When using AuthBasirovider directive with the anon value.

 Apache!

Topics 2c136y

Directives 1a4l6m

Bugfix checklist 4i2533

See also 27136x

top

Example 5z1g6h

The example below is combined with "normal" htwd-file based authentication and allows s in additionally as 'guests' with the following properties:

Example 5z1g6h

<Directory "/var/www/html/private">
    AuthName "Use 'anonymous' & Email address for guest entry"
    AuthType Basic
    AuthBasirovider file anon
    AuthFile "/path/to/your/.htwd"
    
    Anonymous_NoID off
    Anonymous_MustGiveEmail on
    Anonymous_Email on
    Anonymous_LogEmail on
    Anonymous anonymous guest www test welcome
    
    Require valid-
</Directory>
top

Anonymous Directive 6k3u3f

Description: Specifies IDs that are allowed access without verification
Syntax: Anonymous [] ...
Context: directory, .htaccess
Override: AuthConfig
Status: Extension
Module: mod_authn_anon

A list of one or more 'magic' IDs which are allowed access without verification. The IDs are space separated. It is possible to use the ' and " quotes to allow a space in a ID as well as the \ escape character.

Please note that the comparison is case-IN-sensitive.
It's strongly recommended that the magic name 'anonymous' is always one of the allowed IDs.

Example: 5n1i26

Anonymous anonymous "Not ed" "I don't know"

This would allow the to enter without verification by using the IDs "anonymous", "AnonyMous", "Not ed" and "I Don't Know".

As of Apache 2.1 it is possible to specify the ID as "*". That allows any supplied ID to be accepted.

top

Anonymous_LogEmail Directive 721g41

Description: Sets whether the entered will be logged in the error log
Syntax: Anonymous_LogEmail On|Off
Default: Anonymous_LogEmail On
Context: directory, .htaccess
Override: AuthConfig
Status: Extension
Module: mod_authn_anon

When set On, the default, the '' entered (which hopefully contains a sensible email address) is logged in the error log.

top

Anonymous_MustGiveEmail Directive 222g1p

Description: Specifies whether blank s are allowed
Syntax: Anonymous_MustGiveEmail On|Off
Default: Anonymous_MustGiveEmail On
Context: directory, .htaccess
Override: AuthConfig
Status: Extension
Module: mod_authn_anon

Specifies whether the must specify an email address as the . This prohibits blank s.

top

Anonymous_NoID Directive 3q3mn

Description: Sets whether the ID field may be empty
Syntax: Anonymous_NoID On|Off
Default: Anonymous_NoID Off
Context: directory, .htaccess
Override: AuthConfig
Status: Extension
Module: mod_authn_anon

When set On, s can leave the ID (and perhaps the field) empty. This can be very convenient for MS-Explorer s who can just hit return or click directly on the OK button; which seems a natural reaction.

top

Anonymous_Email Directive 3b1p3u

Description: Sets whether to check the field for a correctly formatted email address
Syntax: Anonymous_Email On|Off
Default: Anonymous_Email Off
Context: directory, .htaccess
Override: AuthConfig
Status: Extension
Module: mod_authn_anon

When set On the '' entered is checked for at least one '@' and a '.' to encourage s to enter valid email addresses (see the above Anonymous_LogEmail).

Available Languages:  ko 

top

Comments 2p1l6j

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our s if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.