infinite url request

In a security audit we have find out that our webservers are receiving infinite URL requests like HTTP://xx.xx.xx.xx/YYYYYYYYYYYY..YYY. Is there a way put a limit in the URL requests?

Thanks

What if you reject it when the length of URI more than n chars, eg.

when HTTP_REQUEST { 
 if {[string length [HTTP::uri]] > 30} { 
 reject 
 }  
 }