Added port filter - only allow selected ports in url. If no port has been specified in URL (i.e. there is no :81 or similar part in the URL), pass that URL. Print redirect ports in error message.
Use allowed port filter in rindex. Only allow 80 and 8080 ports