![]() | |||||||||||||||||||
Module ngx_http_secure_link_module | english русский 简体中文 עברית 日本語 türkçe news about download security advisories documentation pgp keys faq links books support donation trac wiki nginx.com | ||||||||||||||||||
The
The authenticity of a requested link is verified by comparing the
checksum value passed in a request with the value computed
for the request.
If link has a limited lifetime and the time has expired,
the link is considered outdated.
Status of these checks is made available in the
The module provides two alternative operation modes. The first mode is enabled by the secure_link_secret directive and allows to check authenticity of requested links as well as protect resources from unauthorized access. The second mode (0.8.50) is enabled by the secure_link and secure_link_md5 directives, and also allows to limit lifetime of links.
This module is not built by default, it should be enabled with the
Directives
Defines a string with variables from which the checksum value and lifetime of a link are to be extracted.
Variables used in an
Checksum value extracted from the string is compared with
MD5 hash value computed for expression defined by the
secure_link_md5 directive.
If checksums are different, the
If link has a limited lifetime, an expiration time
is set in seconds since Epoch (Thu, 01 Jan 1970 00:00:00 GMT).
The value is specified in an expression after MD5 hash,
and is separated by comma.
An expiration time passed in a request is made available in
the
Defines an expression for which the MD5 hash value is to be computed and compared with the value passed in a request.
An expression should contain the secured part of a link (resource)
and a secret ingredient.
If link has a limited lifetime,
an expression should also contain To prevent unauthorized access, an expression may contain some information about the client, such as its address and version of the browser. Example:
The link
“
On UNIX, the
Defines a secret The full URI of a requested link looks as follows: /
where
If requested link passes the authenticity check,
the Example:
A request of “ On UNIX, the hash value for this example can be obtained as: echo -n 'linksecret' | openssl md5 -hex
Embedded Variables
|