On Mon, 8 Mar 2010, Ned Slider wrote:

John Hardin wrote:
 On Mon, 8 Mar 2010, Ned Slider wrote:
> > So I've refined the rule to specifically exclude hitting on the sequence > ../. which stops the rule triggering on multiple relative paths. > > uri LOCAL_URI_HIDDEN_DIR /(?!.{6}\.\.\/\..).{8}\/\../

 How about:

     uri         LOCAL_URI_HIDDEN_DIR    m;.{8}/\..(?!/);


Yes, that works too on my examples and is probably a more elegant solution than mine :-)

John - are you able to try this rule in your sandbox and do mass checks? I'd be interested to see how it scores.

I'll add it.

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 jhar...@impsec.org    FALaholic #11174     pgpk -a jhar...@impsec.org
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Failure to plan ahead on someone else's part does not constitute
  an emergency on my part.                 -- David W. Barts in a.s.r
-----------------------------------------------------------------------
 6 days until Daylight Saving Time begins in U.S. - Spring Forward

Reply via email to