News Links

Discussion in 'Site and Forum Feedback' started by BlueRevolution, Feb 18, 2006.

  1. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #1
    I have Netbarrier set up to block the referrer field, because I don't like being a marketing statistic. also because I don't like people finding out about the naughty sites I visit. :eek:

    regardless, the only place this has given me trouble is here on MR. links in news stories which go through the http://www.macrumors.com/c.php intermediate page (ie. all external links) end up spitting me back out at http://www.macrumors.com/... even links in Page 2 stories.

    I have no idea what purpose c.php serves, but is it possible that it could be tweaked or removed so that I don't have to go into my firewall preferences every time I want to follow a link in a news story?
     
  2. Doctor Q Administrator

    Doctor Q

    Staff Member

    Joined:
    Sep 19, 2002
    Location:
    Los Angeles
    #2
    I asked about this. It is apparently not possible (and certainly not easy) for it to be tweaked or removed. So, at least for now, your Netbarrier block is not compatible with MacRumors.
     
  3. TMA macrumors 6502a

    TMA

    Joined:
    Jan 6, 2003
    Location:
    England
  4. BlueRevolution thread starter macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #4
    I believe so. I believe that a new tab returns a blank referrer field, so the same cause.

    however, I just checked it out. it works properly (with my referrer blocking off of course) when I command-click or middle click on the link, but not when I right-click and use "open in a new tab".

    edit:

    word.

    I'm going to set up a simple JavaScript simulation and see if I can confirm my... suspicions.

    edit 2:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    
    <script language="javascript" type="text/javascript">
    <!--
    
    document.writeln(document.referrer);
    
    // -->
    </script>
    
    </body>
    </html>
    that returns a blank page for me, even when I follow a link from another page. referrer blocking is off, so what am I doing wrong? (nevermind, see below.)

    so far it looks like Safari isn't reporting referrer at all.

    tested with Mozilla, blank there too. weird.

    edit 3:

    uploaded the referrer page to my website. try clicking the link below:

    http://www.intrigueblue.com/referrer.html

    edit 4:

    it works when the referrer is an external URL (as opposed to file://). so that answers that question. as I suspected, referrer is reported when you center-click or command-click a link but NOT when you right-click and select open in a new tab.

    I don't know what c.php contains or why it doesn't work properly with a blank referrer value, but that is exactly the case. I can't think that referrer would be needed for what it does though... out of curiosity, what purpose does it serve?

    edit 5: (couldn't resist)

    bizarrely, right-clicking and selecting open in a new window does return a referrer and thus works properly.

    edit 6:

    ok, that's bizzare.

    the JavaScript document.referrer value is not being blocked by NetBarrier. the page behaves exactly the same when blocking is enabled.

    still wondering what exactly c.php does, what referrer value it accesses (PHP maybe?) and why it does so.

    time to stop editing too.
     
  5. arn macrumors god

    arn

    Staff Member

    Joined:
    Apr 9, 2001
  6. BlueRevolution thread starter macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
  7. andysmith macrumors 6502

    Joined:
    Sep 24, 2004
    Location:
    West Mids, UK
    #7
    Thanks... this has been bugging me for a while :)
     
  8. TMA macrumors 6502a

    TMA

    Joined:
    Jan 6, 2003
    Location:
    England

Share This Page