Refined URI filter check