java redirect?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ztik
    Confirmed User
    • Aug 2001
    • 5196

    #1

    java redirect?

    Anyone know how to redirect from a certain referral url in java script?

    Say someone is linking to my site from gfy.com I want all the people who click from there to goto lemonparty.org

    Anyone know how?
    .
  • ztik
    Confirmed User
    • Aug 2001
    • 5196

    #2
    $25 paypal for it
    .

    Comment

    • u-Bob
      there's no $$$ in porn
      • Jul 2005
      • 33063

      #3
      icq me

      Comment

      • Sam Granger
        Confirmed User
        • Dec 2004
        • 3958

        #4
        Just use htaccess

        RewriteEngine on
        RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?gfy.com.*$ [NC]
        RewriteRule .* http://www.lemonparty.org [R,L]

        $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
        14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
        Join Fetish Hits now!
        ICQ: 358652230

        Comment

        • ztik
          Confirmed User
          • Aug 2001
          • 5196

          #5
          Originally posted by u-Bob
          icq me

          don't use icq my aim is willraim though
          .

          Comment

          • ztik
            Confirmed User
            • Aug 2001
            • 5196

            #6
            Originally posted by Sam Granger
            Just use htaccess

            RewriteEngine on
            RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?gfy.com.*$ [NC]
            RewriteRule .* http://www.lemonparty.org [R,L]
            looking for java
            .

            Comment

            • xentech
              Confirmed User
              • Jan 2006
              • 1405

              #7
              Originally posted by ztik
              looking for java
              Why, are you going to put it on somebody else's site?

              Comment

              • st0ned
                Confirmed User
                • Mar 2007
                • 8437

                #8
                I have the code somewhere, let me see if I can dig it up.
                Conversion Sharks - 1,000+ adult dating offers, traffic management, and consistently high payouts.
                We will guarantee and beat your current EPC to win your dating traffic!
                Skype: ConversionSharks || Email: info /@/ conversionsharks.com

                Comment

                • fris
                  Too lazy to set a custom title
                  • Aug 2002
                  • 55679

                  #9
                  why would you waste it with javascript when htaccess can do it without editing any code on your site, seems silly
                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                  Comment

                  • Sam Granger
                    Confirmed User
                    • Dec 2004
                    • 3958

                    #10
                    <script>
                    if((/^https?\:\/\/(www\.)?gfy\.com/).test(document.referrer)){
                    location.href="http://www.lemonparty.org";
                    }
                    </script>

                    Please send payment to [email protected]

                    Place the script in your header

                    $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
                    14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
                    Join Fetish Hits now!
                    ICQ: 358652230

                    Comment

                    • Sam Granger
                      Confirmed User
                      • Dec 2004
                      • 3958

                      #11
                      So, something like this:

                      <html>
                      <head>
                      <title>Title goes here</title>
                      <script>
                      if((/^https?\:\/\/(www\.)?kwackin\.com/).test(document.referrer)){
                      location.href="http://www.google.com";
                      }
                      </script>
                      </head>
                      <body>
                      GFY'ers love lemonparty
                      </body>
                      </html>

                      $35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
                      14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
                      Join Fetish Hits now!
                      ICQ: 358652230

                      Comment

                      • borked
                        Totally Borked
                        • Feb 2005
                        • 6284

                        #12
                        I think he wants all the links to change, not an auto-redirect.
                        Could be wrong though


                        btw, in your regex, no need to escape the colon \:

                        Originally posted by Sam Granger
                        <script>
                        if((/^https?\:\/\/(www\.)?gfy\.com/).test(document.referrer)){
                        location.href="http://www.lemonparty.org";
                        }
                        </script>

                        Please send payment to [email protected]

                        Place the script in your header

                        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

                        • ztik
                          Confirmed User
                          • Aug 2001
                          • 5196

                          #13
                          worked

                          payment sent
                          .

                          Comment

                          Working...