Function to take out 500 error notifications for allowed_hosts