I'm trying to set up access for a directory using .htaccess rules. Apparently, the remote IP is always localhost due to the way the provider ( SourceForge.net ) has set things up.
I've noticed that the correct IP is set in the X-Forwarded-For header.
How can I allow access only to some known hosts based on the X-Forwarded-For header?