News for hackers. Stuff that matters.
Re:Apache vulnerable to easy DOS attack - workaround available by ck2 on Thursday August 25, 2011 @07:59AM (#2924571)
I guess you could just allow ONE range which seems like a good compromise and defeat the attack?

     RewriteCond %{HTTP:range} !(^bytes=[^,]+(,[^,]+){0,1}$|^$)
     RewriteRule .* - [F]
(for those that don't speak regex: the 0,1 allows either one or none range headers to be accepted, more or less will fail to be served anything)

That will allow downloads to still resume and it works in any version of apache.

Re:Apache vulnerable to easy DOS attack - workaround available by Dylan16807 on Thursday August 25, 2011 @08:28AM (#2924645)
If you want to limit to one then ? is simpler. Doesn't that version limit to 1+0-1 -> 1-2 though? But why bother with a complex anchored regex when you can just search for "," in the range header.
Re:Apache vulnerable to easy DOS attack - workaround available by epo on Thursday August 25, 2011 @09:44AM (#2924856)
Or just Apache's Option 1 as in your post above?