The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hotlinking Hot Link Hotlink Red X

Discussion in 'General Discussion' started by chasmcg, Feb 14, 2008.

  1. chasmcg

    chasmcg Active Member

    Joined:
    Mar 20, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    I've had this problem before with WinXP. A visitor to my site now says she has it.

    I have hotlinking enabled. The visitor comes to my homepage on my website and sees a red x where the images should be. She goes to another page on my site, clicks a link to go back to the home page and the images now appear. If she had clicked the back button to come back to my home page she would still see the red x.

    Why? This is caused by this I think.... When the visitor comes to my website from another website, the server interprets this as hotlinking because it is reading the URL from the other website. Even though the visitor is on my website. So it serves no images. When the visitor goes to another page from my homepage, then clicks a link to go back to the homepage, the server sees the visitor as coming from my website and loads the images.

    This doesn't happen to everyone but to a few. Anyone know the cure for this? Hope I'm being clear. Thanks.
     
    #1 chasmcg, Feb 14, 2008
    Last edited: Feb 14, 2008
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Hotlink protection is based upon the HTTP_REFERER variable being provided by the browser. The trouble is, this variable is not always defined by the browser. For example, if I open my browser and navigate directly to a web site, the HTTP_REFERER will be blank, because I was not 'referred' to the site, I used direct addressing. Some browsers and proxies remove or break the HTTP_REFERER variable.
     
  3. chasmcg

    chasmcg Active Member

    Joined:
    Mar 20, 2005
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply. I wonder though, why this happens to some and not others?
     

Share This Page