referring URL redirection

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pornJester
    Confirmed User
    • Mar 2001
    • 6138

    #1

    referring URL redirection

    anyone know if there is a way to use .htaccess or something similar to redirect incoming traffic based on keywords or strings contained in the referring URL?


    FreshBucks | Webmaster Vault | GayAW
    Trusted Names in Adult.
    ICQ 9157.3698
  • Muff
    Confirmed User
    • Mar 2001
    • 1782

    #2
    That sounds like a script you would need programed for you.

    if you know the referering URLs you can use Java

    < SCRIPT LANGUAGE="JavaScript" >

    <!--
    if (document.referrer.indexOf(blabla.com') > -1)
    location.href = 'http://www.redirect.com';
    //-->

    < /SCRIPT >

    Remove the spaces from the script tags.

    Comment

    • Muff
      Confirmed User
      • Mar 2001
      • 1782

      #3
      Code:
      <SCRIPT LANGUAGE="JavaScript">
      
      <!--
      if (document.referrer.indexOf('referer.com') > -1)
      location.href = 'http://www.yoursite.com';
      //-->
      
      </SCRIPT>
      oops.

      Comment

      • Muff
        Confirmed User
        • Mar 2001
        • 1782

        #4


        If this doesnt work you are out of luck.

        <!--
        if (document.referrer.indexOf('pornno.com') > -1)
        location.href = 'http://www.xxxlinkcafe.com';
        if (document.referrer.indexOf('www.pornno.com') > -1)
        location.href = 'http://www.xxxlinkcafe.com';
        //-->


        < SCRIPT LANGUAGE="JavaScript" >
        < /script >

        Comment

        • Muff
          Confirmed User
          • Mar 2001
          • 1782

          #5
          view source here. http://www.xxxlinkcafe.com/older-women-sex.html in between the head tags.

          Fuck UBB.

          Comment

          • Lane
            Will code for food...
            • Apr 2001
            • 8496

            #6
            <?php
            if (eregi("keyword",$HTTP_REFERER)) header ("Location: http://www.wherever.com");
            ?>

            Comment

            Working...