(Biz Thread) Double Meta refresh to blank the referrer....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #1

    (Biz Thread) Double Meta refresh to blank the referrer....

    twinks lmk if this is a good way


    First make the file bla.php


    Code:
    <?php
    echo "<meta http-equiv=\"refresh\" content=\"0;
    url=http://www.cockmeat.com/bla2.php\">";
    ?>
    Then bla2.php
    Code:
    <?php
    $referer = $_SERVER['HTTP_REFERER'];
    if($referer == "")
    {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://
    www.affiliatelinkinhere.com/\">";
    
    }
    else
    {
    echo "<meta http-equiv=\"refresh\" content=\"0;url=http://
    www.cockmeat.com\">";
    }
    ?>







    --Im beautiful
  • Juicy D. Links
    So Fucking Banned
    • Apr 2001
    • 122992

    #2
    please no cockmeat jokes lmk if this is a good way

    Comment

    • Juicy D. Links
      So Fucking Banned
      • Apr 2001
      • 122992

      #3
      whole lotta cockmeat in that code

      Comment

      • Iron Fist
        Too lazy to set a custom title
        • Dec 2006
        • 23400

        #4
        why not do this through .htaccess?
        i like waffles

        Comment

        • 420
          cuck
          • Mar 2003
          • 11571

          #5
          I will give you $2k for cockmeat.com.
          <!--BEGIN SIMUTRONICS PLAY BUTTON CODE -->
          <p align="center">

          <a href="http://buddy.play.net/dr?TMOREAU1">

          <img src="drplay.gif" width="128" height="64" alt="Play DragonRealms!"></a></p>

          <!--END SIMUTRONICS PLAY BUTTON CODE -->

          Comment

          • borked
            Totally Borked
            • Feb 2005
            • 6284

            #6
            look, just cos the tool that wrote the referrer section for apache couldn't spel, and PHP followed his spelling mistake to make things consistent (eh, wtf???), doesn't mean you have to make your var named $referer and not $referrer

            /rant

            For coding work - hit me up on andy // borkedcoder // com
            (consider figuring out the email as test #1)



            All models are wrong, but some are useful. George E.P. Box. p202

            Comment

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

              #7
              Some versions of IE (6 I think) ignore a meta refresh time of 0.

              You can also use javascript to do the redirect.

              If you need this to block the referer 100.0% of the time then I don't think it's going to work, sooner or later a browser is going to leak something... I've seen weird behaviour before where a hit goes through my system as noref, is 302'd to another of my sites, and there it suddenly presents a referer again...

              Comment

              • Antonio
                Too lazy to set a custom title
                • Oct 2001
                • 14136

                #8
                head over to bhw and grab a script from there

                Comment

                • pornguy
                  Too lazy to set a custom title
                  • Mar 2003
                  • 62912

                  #9
                  I think the htaccess idea is better and a faster redirect.
                  PornGuy skype me pornguy_epic

                  AmateurDough The Hottes Shemales online!
                  TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!

                  Comment

                  Working...