title: Limit WebClient DownloadFile maximum file size
body: <p>In my asp .net project, my main page receives URL as a parameter I need to download internally and then process it. I know that I can use WebClient's DownloadFile method however I want to avoid malicious user from giving a url to a huge file, which will unnecessary traffic from my server. In order to avoid this, I'm looking for a solution to set maximum file size that DownloadFile will download.</p>
  
  <p>Thank you in advance,</p>
  
  <p>Jack</p>