Passing referrer information through a meta refresh?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • X37375787
    • Aug 2026

    #1

    Passing referrer information through a meta refresh?

    Is that possible? Or will PHP do it?

    I simply want the referrer info to be sent through a gateway to another page:

    page1.html ----click----> blah.html ----meta----> page2.html

    And I want the referring click from page1.html to be seen when the meta refreshes to page2.

    Ideas?
  • ztik
    Confirmed User
    • Aug 2001
    • 5196

    #2
    ssi
    .

    Comment

    • johnbosh
      Confirmed User
      • Aug 2002
      • 8965

      #3
      Originally posted by Equinox
      Is that possible? Or will PHP do it?

      I simply want the referrer info to be sent through a gateway to another page:

      page1.html ----click----> blah.html ----meta----> page2.html

      And I want the referring click from page1.html to be seen when the meta refreshes to page2.

      Ideas?
      Where do you need it for if I may ask

      Comment

      • Theo
        HAL 9000
        • May 2001
        • 34515

        #4
        to cheat thehun

        Comment

        • Stud Money
          So Fucking Banned
          • Sep 2003
          • 3214

          #5
          What kind of referrer information are you looking at passing through?

          Is this for an affiliate type program or, for static pages that you have on your own server?

          You could, if you are going to be hand coding the meta refreshes use a referal string such as http://www.domain.com/subdirectory/?page1 if that will work for your specific needs.

          Otherwise you might want to hit a programmer up to see if they have any other solutions

          Comment

          • X37375787

            #6
            Originally posted by johnbosh
            Where do you need it for if I may ask

            I want a page to send my clickthrus to from gallery traffic ~ but I don't want the referrer information to get lost (for the stats).


            and yeah, to cheat the hun. fuck you soul.

            Comment

            • FATPad
              Confirmed User
              • Oct 2001
              • 6693

              #7
              You could always just track the referrers to your refresh page if it doesn't pass through.
              <a href="http://www.adultcontent.co.uk">Adult Content UK - Great British Content</a>

              Comment

              • X37375787

                #8
                Originally posted by FATPad
                You could always just track the referrers to your refresh page if it doesn't pass through.
                well, I wanna know where the sale came from... ya know.


                anyone? p-leasssse!

                Comment

                • MattO
                  The O is for Oohhh
                  • Feb 2003
                  • 10861

                  #9
                  if it was cold fusion I could do it...

                  if you can set a variable to your refer you should be able to pass it to the new url with a ?ref=refervariable on it I think
                  Last edited by MattO; 10-28-2003, 10:02 AM.

                  Comment

                  • rowan
                    Too lazy to set a custom title
                    • Mar 2002
                    • 17393

                    #10
                    Originally posted by Equinox



                    I want a page to send my clickthrus to from gallery traffic ~ but I don't want the referrer information to get lost (for the stats).
                    If the intermediate page is just a meta refresh (with no other content) then why not just do a 302 redirect? 99% of the time that will preserve the original URL as the referer.

                    Comment

                    • X37375787

                      #11
                      Originally posted by rowan


                      If the intermediate page is just a meta refresh (with no other content) then why not just do a 302 redirect? 99% of the time that will preserve the original URL as the referer.

                      302 is what exactly?

                      Comment

                      • X37375787

                        #12
                        well there is some minor html on the page with the meta refresh...

                        Comment

                        • JayJay
                          Confirmed User
                          • Jun 2002
                          • 3739

                          #13
                          Originally posted by Equinox



                          302 is what exactly?
                          Moved Temporarily
                          which normally reffers to a file which the server can not find but thinks it should find or a file not created by a script which is moved temporarily

                          Comment

                          • rowan
                            Too lazy to set a custom title
                            • Mar 2002
                            • 17393

                            #14
                            302 is the HTML code for temporary redirect. This PHP code will immediately redirect to www.someurl.com:

                            &lt;?php
                            &nbsp; header("HTTP/1.0 302 bounce");
                            &nbsp; header("Location: http://www.someurl.com/");
                            ?&gt;

                            Comment

                            • X37375787

                              #15
                              Originally posted by rowan
                              302 is the HTML code for temporary redirect. This PHP code will immediately redirect to www.someurl.com:

                              &lt;?php
                              &nbsp; header("HTTP/1.0 302 bounce");
                              &nbsp; header("Location: http://www.someurl.com/");
                              ?&gt;
                              THANKS!

                              Let me try this out.

                              Comment

                              • X37375787

                                #16
                                woohoo, it worked!

                                Thanks rowan.

                                Comment

                                • X37375787

                                  #17
                                  is there a way to time the 302 bounce?

                                  Comment

                                  • JayJay
                                    Confirmed User
                                    • Jun 2002
                                    • 3739

                                    #18
                                    Originally posted by rowan
                                    302 is the HTML code for temporary redirect. This PHP code will immediately redirect to www.someurl.com:

                                    &lt;?php
                                    &nbsp; header("HTTP/1.0 302 bounce");
                                    &nbsp; header("Location: http://www.someurl.com/");
                                    ?&gt;
                                    hmm and this redirects with the referrer intact
                                    interesting

                                    Comment

                                    • NetRodent
                                      Confirmed User
                                      • Jan 2002
                                      • 3985

                                      #19
                                      Originally posted by JayJay


                                      hmm and this redirects with the referrer intact
                                      interesting
                                      Depends on the browser.
                                      "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
                                      --H.L. Mencken

                                      Comment

                                      • X37375787

                                        #20
                                        Originally posted by JayJay


                                        hmm and this redirects with the referrer intact
                                        interesting

                                        sure does ;-)


                                        However, I still could not find a way to incorporate that redirect into an html file and delay it. The code above automatically bounces to the given url...

                                        Comment

                                        • JayJay
                                          Confirmed User
                                          • Jun 2002
                                          • 3739

                                          #21
                                          Originally posted by NetRodent


                                          Depends on the browser.
                                          IE?

                                          Comment

                                          • X37375787

                                            #22
                                            Originally posted by JayJay

                                            IE?

                                            it seems like both IE and mozilla work fine with it.

                                            Comment

                                            Working...