网站阻止我(403 Forbidden),因为我发送了这么多请求

时间:2015-09-03 07:38:17

标签: c# html phantomjs http-status-code-403

我向http://www.finansgundem.com/发送了很多请求以获取新闻。我在想这就是为什么他们阻止我。我使用phantomjs作为浏览器。我该如何解决这个问题?

这是Broser Codes

 var driverService = PhantomJSDriverService.CreateDefaultService();
 driverService.HideCommandPromptWindow = true;                 
 driverService.IgnoreSslErrors = true;
 driverService.LocalToRemoteUrlAccess = true;

 Driver = new PhantomJSDriver(driverService);

和请求......

Driver.Navigate().GoToUrl(url);
var source=Driver.PageSource;

这是请求的回应......

<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
  <head>
     <title>403 Forbidden</title>
  </head>
  <body>
     <h1>Forbidden</h1>
     <p>You don't have permission to access /gundem/esad_i-soke-edecek-saldiri-705823.htm
        on this server.
     </p>
     <hr>
     <address>Apache/2.2.22 (Win32) mod_evasive2/1.10.1-win mod_jk/1.2.37 Server at www.finansgundem.com Port 80
     </address>
  </body>
</html>

0 个答案:

没有答案