http referer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • exxos

    http referer

    Hi all,

    I'm trying to list to a html page where the referer is, There are a lot of
    ways ive tried and work, but the problem if my mainpage uses frames, and no
    matter where I do the referer check it just reports the website url, does
    anyone know a cure or workaround other than trashing the frames ?

    Cheers,
    chris


  • Evertjan.

    #2
    Re: http referer

    exxos wrote on 03 mrt 2005 in comp.lang.javas cript:[color=blue]
    > I'm trying to list to a html page where the referer is, There are a
    > lot of ways ive tried and work, but the problem if my mainpage uses
    > frames, and no matter where I do the referer check it just reports the
    > website url, does anyone know a cure or workaround other than trashing
    > the frames ?[/color]

    Then that really is the referer.
    Frames are evil, trash them anyway.

    Cann't you get the referrer on the main frameset page?

    --
    Evertjan.
    The Netherlands.
    (Replace all crosses with dots in my emailaddress)

    Comment

    • exxos

      #3
      Re: http referer


      "Evertjan." <exjxw.hannivoo rt@interxnl.net > wrote in message
      news:Xns960EA70 008271eejj99@19 4.109.133.29...[color=blue]
      > exxos wrote on 03 mrt 2005 in comp.lang.javas cript:[color=green]
      >> I'm trying to list to a html page where the referer is, There are a
      >> lot of ways ive tried and work, but the problem if my mainpage uses
      >> frames, and no matter where I do the referer check it just reports the
      >> website url, does anyone know a cure or workaround other than trashing
      >> the frames ?[/color]
      >
      > Then that really is the referer.
      > Frames are evil, trash them anyway.
      >
      > Cann't you get the referrer on the main frameset page?
      >
      > --
      > Evertjan.
      > The Netherlands.
      > (Replace all crosses with dots in my emailaddress)
      >[/color]

      I managed to get in in the frameset, though im trying to match the referer
      to itself to see if this works...


      if (document.refer rer&&document.r eferrer!=docume nt.referrer)
      alert('Found');


      might be setout wrong ? though the referer will always match itself (I
      assume) so it should flag up the alter box.. but dont do a thing.... if I
      flag up a alert for the referer thats correct...... *lost* ?!

      Chris



      Comment

      • Evertjan.

        #4
        Re: http referer

        exxos wrote on 03 mrt 2005 in comp.lang.javas cript:
        [color=blue]
        > if (document.refer rer&&document.r eferrer!=docume nt.referrer)
        > alert('Found');
        >
        >
        > might be setout wrong ? though the referer will always match itself (I
        > assume) so it should flag up the alter box.. but dont do a thing....
        > if I flag up a alert for the referer thats correct...... *lost* ?!
        >[/color]

        No it does not!!

        (document.refer rer&&document.r eferrer!=docume nt.referrer)

        pseudocode:

        if "document.refer rer" is not true then NO alert

        "document.refer rer!=document.r eferrer" this is never true, so always false

        if "document.refer rer" is true then
        if false then again NO alert()

        Conclusion: alert() never fires at all.

        --
        Evertjan.
        The Netherlands.
        (Replace all crosses with dots in my emailaddress)

        Comment

        Working...