Added logic to reject requests for local domain/IP