GCS Amplitude
GCS Amplitude

Apache Module mod_authn_anon

This module provides authentication front-ends such as

to authenticate users similar to anonymous-ftp sites, modauthbasici.e. have a 'magic' user id 'anonymous' and the email address as a password. These email addresses can be logged.

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

, this module is invoked via the modauthbasic

) anonymous guest www test welcome

) AuthName "Use 'anonymous' & Email address for guest entry" AuthType Basic AuthBasicProvider file anon AuthUserFile /path/to/your/.htpasswd AnonymousNoUserID off AnonymousMustGiveEmail on AnonymousVerifyEmail on AnonymousLogEmail on Anonymous anonymous guest www test welcome Require valid-user

Please note that the comparison is case-IN-sensitive.

It's strongly recommended that the magic username 'anonymous

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

". That allows any supplied userID to be accepted.

Modules | Directives | FAQ | Glossary | Sitemap

Apache HTTP Server Version 2.4

Apache Module mod_authn_anon

Available Languages: en | fr | ja | ko

Example

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

Anonymous Directive

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

Anonymous_LogEmail Directive

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

Anonymous_MustGiveEmail Directive

Specifies whether the user must specify an email address as the password. This prohibits blank passwords.

Anonymous_NoUserID Directive

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

Anonymous_VerifyEmail Directive

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