Filtering middleware for Iron