Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    It appears you have hotlink protection or something similar enabled on your site.

    We grab your images via an automated process and it is returning a text file, instead of an image:

    $ curl -I www.sourceoutdoor.net/wp-content/uploads/MG_1660.jpg
    HTTP/1.1 200 OK
    Content-Type: text/html
    Connection: close
    Cache-Control: no-cache
    Connection: close
    Content-Length: 5088
    X-Iinfo:
    Set-Cookie: incap_ses_209_165279=boHhHO6x9iGPmFDPs4XmAofmrVMAAAAAXpiXkWZWP5DdtZ8OyqFq9Q==; path=/; Domain=.sourceoutdoor.net
    Set-Cookie: visid_incap_165279=6z2lEfUNRQSmBji3F68iCIfmrVMAAAAAQUIPAAAAAAAqSZlfV/OAz+ClkUdVgCzT; expires=Sun, 26 Jun 2016 12:16:13 GMT; path=/; Domain=.sourceoutdoor.net
    Thread Starter frankiehayward

    (@frankiehayward)

    Hey Brandon,

    Thanks for looking into this for me. I’ve checked my ngnix conf files and I did not set any hotlink protection.

    Maybe the issue is coming from my CDN? I’m using Incapsula… does your automated process have an IP address I can whitelist?

    Seems to return an image file for me, see:

    $ curl -I www.sourceoutdoor.net/wp-content/uploads/MG_1660.jpg
    HTTP/1.1 200 OK
    Server: nginx centminmod
    Date: Mon, 30 Jun 2014 14:00:07 GMT
    Content-Type: image/jpeg
    Content-Length: 1320954
    Last-Modified: Tue, 24 Jun 2014 19:54:06 GMT
    Connection: keep-alive
    ETag: "53a9d75e-1427fa"
    Expires: Wed, 30 Jul 2014 14:00:07 GMT
    Cache-Control: max-age=2592000
    Pragma: public
    Cache-Control: public, must-revalidate, proxy-revalidate
    Accept-Ranges: bytes

    Any thoughts?

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    If you’re already using a CDN, that’s possible. My guess is may be restricting accessing the image for our servers since we haven’t accessed the actual site, as I’m still seeing the bad curl.

    I’ll check if we have a reliable IP list specific to Photon. Since we have a hundreds of servers and IP addresses all taking part in our cloud services, often there isn’t a reliable list that isn’t hundreds of IPs long.

    Thread Starter frankiehayward

    (@frankiehayward)

    Gotcha, thanks again!

    Thread Starter frankiehayward

    (@frankiehayward)

    Hi Brandon,

    I contacted Incapsula support to see if they could address the issue on their end. This is what they said…

    Roy (Incapsula Support)
    Jul 03 03:53
    
    Hi,
    
    It seems that our system suspecting Photon as a bot and therefore challenging it with a JS test, which he fails to pass this challenge.
    I have added user agent Photon/1.0 to the exception list for your site.
    
    Please perform the curl again and update us if the problem persists.
    
    Thank you,
    Roy
    [Incapsula Global Support]

    This seems to have fixed the issue. Thanks again for all the help.

    Cheers,
    Frankie

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    That’s great to hear. Thanks for working with Incapusla and reporting back.

    Cheers!

    Hello my friends, I also stumbled this problem
    The cause of the problem was in the activation of Hot Link in Control Panel website you disable the addition was fix the problem
    Thank you all ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘We cannot complete this request, remote data was invalid’ is closed to new replies.