Harden Rich Media parsing against very slow or malicious URLs