Готов ftp://www.kuzbass.ru/pub/mod_perl/Apache-ProxyAddr-0.1.tar.gz (2Kb)
Кто хочет, тестируйте. У меня работает.
NAME
Apache::ProxyAddr - makes use of 'X-Forwarded-For' as
request IP
SYNOPSIS
# Configuration in httpd.conf
PerlModule Apache::ProxyAddr;
PerlPostReadRequestHandler Apache::ProxyAddr;
PerlSetVar ProxyAddrKnown "1.2.3.4 5.6.7.8 9.10.11.12"
DESCRIPTION
This module allows use of Apache 'allow' and 'deny'
directives even when user is behind proxy supplying
'X-Forwarded-For' HTTP header. In that case, real IP
address (instead of proxy's) will be used for access
control.
LIST OF TOKENS
·
ProxyAddrKnown "1.2.3.4 5.6.7.8 9.10.11.12"
IP addresses of proxies. 'X-Forwarded-For' will be used
for these hosts only.
CONFIGURATION
The module should be loaded upon startup of the Apache
daemon. Add the following line to your httpd.conf:
PerlPostReadRequestHandler Apache::ProxyAddr;
Setting ProxyAddrKnown from .htaccess does not work for
some reason, so set it in httpd.conf
SEE ALSO
the Apache manpage, the mod_perl manpage
AUTHORS
· mod_perl by Doug MacEachern <dougm@xxxxxxx>
· Apache::ProxyAddr by Eugene Grosbein <eugen@xxxxxxxxx>
COPYRIGHT
The Apache::ProxyAddr module is free software; you can
redistribute it and/or modify it under the same terms as
Perl itself.
Eugene
=============================================================================
= Apache-Talk@xxxxxxxxxxxxx mailing list =
Mail "unsubscribe apache-talk" to majordomo@xxxxxxxxxxxxx if you want to quit.
= Archive avaliable at http://www.lexa.ru/apache-talk =
"Russian Apache" includes software developed
by the Apache Group for use in the Apache HTTP server project
(http://www.apache.org/) See
Apache LICENSE.
Copyright (C) 1995-2001 The Apache Group. All rights reserved.
Copyright (C) 1996 Dm. Kryukov; Copyright (C)
1997-2009 Alex Tutubalin. Design (C) 1998 Max Smolev.