Implement filtering for file-based router.