Thanks for the reply vesperto but the real IP of the client is not the
same as $REMOTE_IP. I already tried the AccessModule and that didn’t do
the job.
In my scenario $REMOTE_IP is the IP of the proxy serving which is
forwarding the request and $TRUE-CLIENT-IP is a field in the HTTP head
which contains the requesting IP which I wish to block.
While I’m not 100% sure (prolly Igor or Maxim can confirm/deny) if the
module changes the clients ip before other modules/internals
(like Access) but you could use the RealIP module http://wiki.nginx.org/NginxHttpRealIpModule
And bassicaly add just the required header:
real_ip_header TRUE-CLIENT-IP;
rr
----- Original Message -----
From: “sameer” [email protected]
To: [email protected]
Sent: Thursday, October 15, 2009 4:00 PM
Subject: Re: Blocking user behind proxy
On Thu, Oct 15, 2009 at 04:36:30PM +0300, Reinis R. wrote:
While I’m not 100% sure (prolly Igor or Maxim can confirm/deny) if the module changes the clients ip before other modules/internals
(like Access) but you could use the RealIP module http://wiki.nginx.org/NginxHttpRealIpModule
I tried the geo directive inside the server section and during the
config check I keep getting an error
: “geo” directive is not allowed here in
/usr/local/nginx/conf/nginx.conf
I tried recompiling --with-http_geo_module and got an error.
Using nginx version 0.7.62
I tried the geo directive inside the server section and during the config check I keep getting an error
: “geo” directive is not allowed here in /usr/local/nginx/conf/nginx.conf