I rewrote a good portion of the filter to use a regular expression to  
grab the first valid IP from the header value. I also changed the  
servlet filter initialization so that the defaults are correct for  
most situations, but can be overridden if needed. It's in production  
on one of my servers now, and seems to be working very well. I tested  
its behavior with some invalid headers and headers with multiple IPs.

   http://www.teleologic.net/~jlamoree/teleologic-server-0.2.zip   
(81241 bytes)
   http://www.teleologic.net/~jlamoree/teleologic-server-0.2.tar.gz   
(77240 bytes)

If anyone discovers a bug, or finds this useful, please let me know.  
Thanks.

--
Joseph Lamoree

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/cf_lists/message.cfm/forumid:4/messageid:245713
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to