Protection against harmful attacks by rate limiting remote method calls