webClient.DownloadString being blocked by some websites and responds back as detected malware

可紊 提交于 2020-01-16 07:26:56

问题


I am very new to coding and the code client.DownloadString works on most sites but I have come across a site that seems to block the attempt to load the webpage and returns the same response of blocking the attempt. I was hoping someone can tell me a way around here is the code and the page that won't load

  ServicePointManager.Expect100Continue = True
  ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
  Dim client = New WebClient()
  TextBox1.Text = client.DownloadString("https://www.somesite.com/samsung-series-9-7-1-4-channel.html")

Any tips would be appreciated

来源:https://stackoverflow.com/questions/56057748/webclient-downloadstring-being-blocked-by-some-websites-and-responds-back-as-det

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!