Oct 20, 2005
Good points - I'm sold. I'll incorporate the check for internal networks and bypass replacement of the X-Forwarded-For header if the source address is from the ranges specified above.
Since I can't really test this on my setup, if anyone is willing to test out my code changes, I'll be able to post them for everyone to share.
Oh, and I've made a few more optimizations in the code for the cases when X-Forwarded-For headers aren't passed in.
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)