Do redirected pages show referrer?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Hypo
    So Fucking Banned
    • Feb 2001
    • 1104

    #1

    Do redirected pages show referrer?

    If I send a page from domainA to domainB which automatically redirects via javascript to DomainC, will DOmainC see the referrer as DomainB?
  • Techie Media
    Confirmed User
    • Jan 2001
    • 3092

    #2
    Hypo, usually the referrer wont carry through in that situation. You may see some of the referrers show, but not all, when you redirect like that wierd things happen to the referrers.

    ------------------
    Smile and Be Happy

    Lightning Free Hosting
    Gay Free Hosting
    Girls Host


    sales [AT] techiemedia.com

    Comment

    • mika
      Confirmed User
      • Sep 2001
      • 1561

      #3
      How about, if I link from page A to page B normally, and from page B to page C with metarefresh in 0 seconds, would it be possible (in theory) that page A would be shown as the referring page for page C?

      Comment

      • ldinternet
        Confirmed User
        • Apr 2001
        • 8245

        #4
        If you have a link on site A, which is forwarded via htaccess (deny all, then error 403) to site B, which is forwarded via htaccess to site C, which is forwarded via htaccess to site D... then site A will show on the referrers list.

        Comment

        • TheFLY
          So Fucking Banned
          • Jan 2001
          • 11856

          #5
          works better w/ cgi redirect

          ------------------
          <A HREF="http://www.thefly.net/topfly.html" TARGET=_blank>
          Boneprone-4-Life Family Approved</A>

          [This message has been edited by TheFLY (edited 10-16-2001).]

          Comment

          • TheFLY
            So Fucking Banned
            • Jan 2001
            • 11856

            #6
            meta refresh is unreliable anyway

            Comment

            • manuelk
              Confirmed User
              • Jul 2001
              • 146

              #7
              Like TheFLY already said meta refresh is for linking realy not very nice. Copy past that PHP code into an file called for example 404.php and you will have your "redirect" system incl. refer forwarding.

              <\?php
              header ("Location: htp://ww.sponsor.net/");
              ?>

              my 2 euro cents

              (PS: remove the \ ..)

              [This message has been edited by manuelk (edited 10-16-2001).]
              ...

              Comment

              • TheFLY
                So Fucking Banned
                • Jan 2001
                • 11856

                #8
                sweet...

                php rulez..

                is there a way to draw .gif files w/ php? ya know for graphs and neato stuff like that...

                Comment

                • manuelk
                  Confirmed User
                  • Jul 2001
                  • 146

                  #9
                  Of course there is - any special thing/solution you mean ? PHP with sql database backend is ma favorite thing to offer solutions.
                  ...

                  Comment

                  • Hypo
                    So Fucking Banned
                    • Feb 2001
                    • 1104

                    #10
                    Thanks! Are you 100% sure about the php redirect?

                    Comment

                    • manuelk
                      Confirmed User
                      • Jul 2001
                      • 146

                      #11
                      100% - yes ;o) code is displyed correct now (without the first \ of course) - the board removed the url things before.

                      [This message has been edited by manuelk (edited 10-16-2001).]
                      ...

                      Comment

                      • Hypo
                        So Fucking Banned
                        • Feb 2001
                        • 1104

                        #12
                        How do I make it work from html? I have the traffic coming to an html page and it will be difficult to change it to php for a couple of days.

                        Comment

                        • Hypo
                          So Fucking Banned
                          • Feb 2001
                          • 1104

                          #13
                          Ok, can I have this - html page redirects using javascript to php page - php page rdirects using php to sponsor page? Will the sponsor receive my url that way?

                          Comment

                          • manuelk
                            Confirmed User
                            • Jul 2001
                            • 146

                            #14
                            HTML canĀ“t do that for sure. If you want shoot me an email at [email protected] and I will host your PHP file on a domain till you got PHP enabled - if you reach over 100 GB / day we have to talk about it but before that its free of course ;o)
                            ...

                            Comment

                            • wiZd0m
                              Confirmed User
                              • Feb 2001
                              • 1526

                              #15
                              Hi,

                              you simply cant depend on the HTTP_REFFERER, because it
                              might not be present at all (netscape tends to this somethimes,
                              or the users site have some sort of proxy which filters it out)
                              or might even be incorrect. Either by incorrect browsers
                              or simply by faking it. Please note: every header from
                              useragent can and will be faked if nessecary.

                              So SiteA -> SiteB can look like it's from Site C

                              Remember that it's purpose is to Allows the client to specify, for the server's benefit, the address (URI) of the resource from which the request URI was obtained. This allows a server to generate lists of back-links to resources for interest, logging, optimized caching, etc. It also allows obsolete or mistyped links to be traced for maintenance.

                              ------------------
                              wiZd0m

                              Thunder Free Adult Hosting - Fastest servers in the industry

                              Fortune Pussy Adult Links - The best in adult links
                              ----------
                              wiZd0m

                              Comment

                              • Hypo
                                So Fucking Banned
                                • Feb 2001
                                • 1104

                                #16
                                Manuelk,
                                I do have php on my server, but the page getting loads of traffic rigth now is html, and I cant change that at the moment without losingal the traffic.

                                So I want to tredirect it to a php page using javascript, and that php page redirects using php code to the target page.

                                So PageA.html javascript redirect --> PageB.php php redirect --> PageC.

                                Will Page C show PageB as referrer?

                                Wizdom,

                                I understand I cant rely on http_refrrer, but its all I have at the moment. So how can I fake headers? That will simplify everything.

                                Comment

                                • manuelk
                                  Confirmed User
                                  • Jul 2001
                                  • 146

                                  #17
                                  wiZd0m is right of course. Hypo you can get what i think wiZd0m is talking about with that ..

                                  Page A html -> Page B php -> Sponsor

                                  Page A html will have a meta fresh of 0 a java script etc etc. - Page B shout work with the followign code:

                                  <\?php
                                  WRONG CODE (seel posts below)
                                  ?>

                                  [This message has been edited by manuelk (edited 10-16-2001).]
                                  ...

                                  Comment

                                  • Hypo
                                    So Fucking Banned
                                    • Feb 2001
                                    • 1104

                                    #18
                                    What I have done is this - will it work? (All brackets replaced by square brackets)

                                    Page A.html (getting the traffic) -

                                    [SCRIPT LANGUAGE="JavaScript"]
                                    [ !-- Begin
                                    window.location="http://www.domain.com/redirect.php";
                                    // End -->
                                    [/script]
                                    [noscript]


                                    Page B.php

                                    [?php
                                    header ("Location: http://www.targetdomain.com/
                                    ?]

                                    Should I change B.php and add the header code thingies?

                                    [This message has been edited by Hypo (edited 10-16-2001).]

                                    Comment

                                    • Hypo
                                      So Fucking Banned
                                      • Feb 2001
                                      • 1104

                                      #19
                                      Now I replaced PageB.php with -

                                      [?php
                                      header ("Request-URI: http://www.domain.com/redirect.php
                                      header ("Content-Location: http://www.domain.com/redirect.php
                                      header ("Location: http://www.targetdomain.com/
                                      ");
                                      ?]


                                      Will this work better?

                                      Comment

                                      • Hypo
                                        So Fucking Banned
                                        • Feb 2001
                                        • 1104

                                        #20
                                        Its not working - the target doman is not showing these hits. Any suggestions?

                                        Comment

                                        • manuelk
                                          Confirmed User
                                          • Jul 2001
                                          • 146

                                          #21
                                          I don“t use java script too much so I am the wrong person to ask but about the php - do you get any errors (like is it not working) or does the refer just don“t show up ?
                                          ...

                                          Comment

                                          • Hypo
                                            So Fucking Banned
                                            • Feb 2001
                                            • 1104

                                            #22
                                            The php page is redirecting to the target page, but the target page is not showing the referrer as my domain.

                                            Anyway, thanks for all the help!

                                            Comment

                                            • Hypo
                                              So Fucking Banned
                                              • Feb 2001
                                              • 1104

                                              #23
                                              I have the javascript redirect page before the php page, that might be the problem.

                                              Comment

                                              • manuelk
                                                Confirmed User
                                                • Jul 2001
                                                • 146

                                                #24
                                                Of course its not working what I wrote - that are just two other commands to send the url to the browsers header in a better way - that code was complete wrong - sorry for that. I didn“t used the header function since some time.
                                                ...

                                                Comment

                                                • Hypo
                                                  So Fucking Banned
                                                  • Feb 2001
                                                  • 1104

                                                  #25
                                                  Is it even possible to fake a referrer through someone else's browser? I understand you can fake the referrer using a cgi script requesting a page, but can it be done through a visitor's browser?

                                                  Comment

                                                  • Hypo
                                                    So Fucking Banned
                                                    • Feb 2001
                                                    • 1104

                                                    #26
                                                    I've got an idea - with httaccess.

                                                    If I redirect a surfer from another domain to a non-existing page on my domain, and set the httaccess to send him off to the target, will the referrer be my domain?

                                                    Comment

                                                    Working...