functor to filter urls