comparison src/http/modules/ngx_http_referer_module.c @ 180:4cd3e70c4d60 NGINX_0_3_37

nginx 0.3.37 *) Feature: the "limit_except" directive. *) Feature: the "if" directive supports the "!~", "!~*", "-f", and "!-f" operators. *) Feature: the ngx_http_perl_module supports the $r->request_body method. *) Bugfix: in the ngx_http_addition_filter_module.
author Igor Sysoev <http://sysoev.ru>
date Fri, 07 Apr 2006 00:00:00 +0400
parents 6be073125f2e
children 54aabf2b0bc6
comparison
equal deleted inserted replaced
179:654cbdc0401d 180:4cd3e70c4d60
215 215
216 return NGX_CONF_OK; 216 return NGX_CONF_OK;
217 } 217 }
218 218
219 if ((conf->no_referer == 1 || conf->blocked_referer == 1) 219 if ((conf->no_referer == 1 || conf->blocked_referer == 1)
220 && conf->keys->keys.nelts == 0 && conf->keys->dns_wildcards.nelts) 220 && conf->keys->keys.nelts == 0 && conf->keys->dns_wildcards.nelts == 0)
221 { 221 {
222 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, 222 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
223 "the \"none\" or \"blocked\" referers are specified " 223 "the \"none\" or \"blocked\" referers are specified "
224 "in the \"valid_referers\" directive " 224 "in the \"valid_referers\" directive "
225 "without any valid referer"); 225 "without any valid referer");