Implement security middleware to prevent directory traversal attacks by detecting and blocking requests containing ".." in decoded URL paths