Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-61354

Referer not sent when downloading image

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.9.2
    • 5.9.0
    • WebEngine
    • None
    • Archlinux

    Description

      When trying to save the image on this page it fails with a "Access forbidden by the server", while it can be downloaded in Chromium without any issues.

      The same happens when trying to do so via wget:

      $ wget https://i.pximg.net/img-original/img/2017/06/09/13/35/15/63293446_p0.png
      --2017-06-10 19:44:38-- https://i.pximg.net/img-original/img/2017/06/09/13/35/15/63293446_p0.png
      Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
      Resolving i.pximg.net... 210.140.92.139, 210.140.92.134, 210.140.92.137, ...
      Connecting to i.pximg.net|210.140.92.139|:443... connected.
      HTTP request sent, awaiting response... 403 Forbidden
      2017-06-10 19:44:45 ERROR 403: Forbidden.
      

      but when setting the referer correctly, it works:

      $ wget --referer="https://www.pixiv.net/member_illust.php?mode=medium&illust_id=63293446" https://i.pximg.net/img-original/img/2017/06/09/13/35/15/63293446_p0.png
      
      --2017-06-10 19:46:02--  https://i.pximg.net/img-original/img/2017/06/09/13/35/15/63293446_p0.png
      Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
      Resolving i.pximg.net... 210.140.92.139, 210.140.92.136, 210.140.92.138, ...
      Connecting to i.pximg.net|210.140.92.139|:443... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 199999 (195K) [image/png]
      Saving to: ‘63293446_p0.png’
      
      63293446_p0.png                                                                 100%[======================================================================================================================================================================================================>] 195.31K   212KB/s    in 0.9s    
      
      2017-06-10 19:46:10 (212 KB/s) - ‘63293446_p0.png’ saved [199999/199999]
      

      with mitmproxy, I can confirm no Referer is getting sent.

      Attachments

        For Gerrit Dashboard: QTBUG-61354
        # Subject Branch Project Status CR V

        Activity

          People

            juri.valdmann Jüri Valdmann (Inactive)
            the compiler Florian Bruhin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes