Mercurial > hg > nginx-site
annotate xml/en/docs/http/ngx_http_referer_module.xml @ 521:3481a91d46ab
Minor revision in preparation for translation.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 24 May 2012 12:24:25 +0000 |
parents | 6520338cdf0a |
children | be54c443235a |
rev | line source |
---|---|
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
2 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
3 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
4 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
5 <module name="Module ngx_http_referer_module" |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 link="/en/docs/http/ngx_http_referer_module.html" |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
7 lang="en"> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
8 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 <section id="summary"> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
10 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
11 <para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
12 The <literal>ngx_http_referer_module</literal> module allows to block |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
13 access to a site for requests with invalid values in the |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
14 <header>Referer</header> header field. |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 It should be kept in mind that fabricating a request with an appropriate |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 <header>Referer</header> field value is quite easy, and so the intended |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 purpose of this module is not to block such requests thoroughly but to block |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 the mass flow of requests sent by regular browsers. |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 It should also be taken into consideration that regular browsers may |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 not send the <header>Referer</header> field even for valid requests. |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 </para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 </section> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
24 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
26 <section id="example" name="Example Configuration"> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 <para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 <example> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
30 valid_referers none blocked server_names |
490
9913f1d51c07
Replaced "nginx" domain names with example domains.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
31 *.example.com example.* www.example.org/galleries/ |
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
32 ~\.google\.; |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
34 if ($invalid_referer) { |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
35 return 403; |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 } |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
37 </example> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 </para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
40 </section> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
43 <section id="directives" name="Directives"> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
44 |
502
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
45 <directive name="referer_hash_bucket_size"> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
46 <syntax><value>size</value></syntax> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
47 <default>64</default> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
48 <context>server</context> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
49 <context>location</context> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
50 <appeared-in>1.0.5</appeared-in> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
51 |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
52 <para> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
53 Sets the bucket size for the valid referers hash tables. |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
54 For more information, please refer to |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
55 <link doc="../hash.xml">Setting Up Hashes</link>. |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
56 </para> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
57 |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
58 </directive> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
59 |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
60 |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
61 <directive name="referer_hash_max_size"> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
62 <syntax><value>size</value></syntax> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
63 <default>2048</default> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
64 <context>server</context> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
65 <context>location</context> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
66 <appeared-in>1.0.5</appeared-in> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
67 |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
68 <para> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
69 Sets the maximum <value>size</value> of the valid referers hash tables. |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
70 For more information, please refer to |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
71 <link doc="../hash.xml">Setting Up Hashes</link>. |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
72 </para> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
73 |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
74 </directive> |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
75 |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
76 |
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 <directive name="valid_referers"> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
78 <syntax> |
364 | 79 <literal>none</literal> | |
80 <literal>blocked</literal> | | |
81 <literal>server_names</literal> | | |
82 <value>string</value> | |
83 ...</syntax> | |
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
84 <default/> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
85 <context>server</context> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
86 <context>location</context> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
87 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
88 <para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
89 Specifies values of the <header>Referer</header> request header field |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
90 that will cause the embedded variable <var>$invalid_referer</var> to |
502
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
91 be set to an empty string. |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
92 Otherwise, the variable will be set to “<literal>1</literal>”. |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
93 Search for a match is case-insensitive. |
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
94 </para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
95 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
96 <para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
97 Parameters can be as follows: |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
98 <list type="tag"> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
99 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
100 <tag-name><literal>none</literal></tag-name> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
101 <tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
102 the <header>Referer</header> field is missing in the request header; |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
103 </tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
104 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
105 <tag-name><literal>blocked</literal></tag-name> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
106 <tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
107 the <header>Referer</header> field is present in the request header, |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
108 but its value was deleted by a firewall or proxy server; |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
109 such values are strings that do not start from |
502
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
110 “<literal>http://</literal>” or “<literal>https://</literal>”; |
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
111 </tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
112 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
113 <tag-name><literal>server_names</literal></tag-name> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
114 <tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
115 the <header>Referer</header> request header field contains |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
116 one of the server names; |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
117 </tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
118 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
119 <tag-name>arbitrary string</tag-name> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
120 <tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
121 defines a server name and an optional URI prefix. |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
122 A server name can have an “<literal>*</literal>” at the beginning or end. |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
123 When checking, the server’s port in the <header>Referer</header> field |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
124 is ignored; |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
125 </tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
126 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
127 <tag-name>regular expression</tag-name> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
128 <tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
129 the first symbol should be a “<literal>~</literal>”. |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
130 It should be noted that an expression will be matched against |
502
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
131 the text starting after the “<literal>http://</literal>” |
6520338cdf0a
Bring ngx_http_referer_module docs up to date, including:
Ruslan Ermilov <ru@nginx.com>
parents:
490
diff
changeset
|
132 or “<literal>https://</literal>”. |
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
133 </tag-desc> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
134 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
135 </list> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
136 </para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
137 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
138 <para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
139 Example: |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
140 <example> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
141 valid_referers none blocked server_names |
490
9913f1d51c07
Replaced "nginx" domain names with example domains.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
142 *.example.com example.* www.example.org/galleries/ |
357
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
143 ~\.google\.; |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
144 </example> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
145 </para> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
146 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
147 </directive> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
148 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
149 </section> |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
150 |
3d6c27e22625
Translated ngx_http_referer_module into English.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
151 </module> |