Web Servers on Unix and Linux - Q: How to restrict access by both the remote IP address the X-FORWARD-FOR

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > September 2006 > Q: How to restrict access by both the remote IP address the X-FORWARD-FOR





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Q: How to restrict access by both the remote IP address the X-FORWARD-FOR
mva.led@gmail.com

2006-09-06, 1:26 pm

Hello,

I like to know if there's a way to tell Apache to allow access only
from a specific IP (that in my scenario is a Proxy) and from that IP if
the header X-Forwarded-for is set to another specific address.

I don't know if the following would work (the docs are not clear
enough):

SetEnvIf X-Forwarded-for ^192.168.0.1 HIDDEN-ADDRESS-OK

Order allow,deny
Allow from my.proxy.com env=HIDDEN-ADDRESS-OK
Deny from all

Best regards,
Manuel.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com