Betfair Graphs have stopped working for me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #1

    Betfair Graphs have stopped working for me

    Hi

    My App is C# code and I am using Webclient to download the Betfair graphs, this has been working fine for ages, however it is no longer working from today. Betfair have changed something again to cause this problem. The Server is now returning 403 Forbidden to my request.

    The graphs are still working fine on the Website and in another App, so the problem is in my App.

    I have checked that i am using an https url and that that my url is correct. I have also checked that I am calling

    ServicePointManager.SecurityProtocol = Tls12

    No joy so far in fixing it. Has anyone else hit this problem today, or any ideas of things to try to fix it ?
    I will post an update if I can manage to fix it

    Thanks for any ideas
    Geoff
    Last edited by geoffw123; 16-12-2020, 04:03 PM.
  • geoffw123
    Senior Member
    • Mar 2014
    • 250

    #2
    Some more debugging and I have got this response from the Server


    Please enable cookies.

    Sorry, you have been blocked

    You are unable to access betfair.com

    Why have I been blocked?

    This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
    What the heck is going on here, this code has worked fine every day for a year or more. Now I am suddenly blocked ?

    I am wondering if Betfair has changed something relating to cookies, but dont know how that works with a simple webclient request.

    No clue how to fix this for now. Hopefully Betfair Support can chip in here to say what they have changed and suggest a fix

    Comment

    • MarcusMel
      Junior Member
      • Aug 2009
      • 19

      #3
      It looks like a too many requests in a short period of time shut out to me but I am not certain of it. Have a chat with Betfair to get yourself unblocked.

      Comment

      • geoffw123
        Senior Member
        • Mar 2014
        • 250

        #4
        Thanks for the reply, It couldnt haven been an IP block as just pasting the url into a browser worked for me, just my App was getting blocked.

        After a bit of head scratching I have sussed the problem now.

        My app had a prehistoric looking user-agent line

        Code:
        m_client.Headers["User-Agent"] = @"Mozilla/4.0 (Compatible; Windows NT 5.1; MSIE 6.0;.NET CLR 1.1.4322; .NET CLR 2.0.50727)";
        Betfair must have made a change yesterday to reject very old Internet Explorer browser MSIE 6.0. That was what was triggering the block message

        MSIE 7.0 is still OK, but just for simplicity I have removed that MSIE string totally. Its back working fine now.

        Comment

        Working...
        X