Adding middleware to stop remote access.