Programmers, what is the simplest way to do this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wedouglas
    So Fucking Banned
    • Aug 2004
    • 5921

    #1

    Programmers, what is the simplest way to do this?

    I don't want out going links. I want something like site.com/out/site/ to actually go to the outgoing site.

    What is the simplest method?
  • SmokeyTheBear
    ►SouthOfHeaven
    • Jun 2004
    • 28609

    #2
    htaccess

    try this

    save this as .htaccess upload it to an empty folder

    rewriteengine on
    rewriterule ^(.*)\.asp$ http://$1 [nc]


    then you would call it like this http://yoursite.com/folder/google.com.asp and it would go to google
    hatisblack at yahoo.com

    Comment

    • wedouglas
      So Fucking Banned
      • Aug 2004
      • 5921

      #3
      Originally posted by SmokeyTheBear
      htaccess

      try this

      save this as .htaccess upload it to an empty folder

      rewriteengine on
      rewriterule ^(.*)\.asp$ http://$1 [nc]


      then you would call it like this http://yoursite.com/folder/google.com.asp and it would go to google
      Thanks, I'll give it a go when I get back

      Comment

      • Tempest
        Too lazy to set a custom title
        • May 2004
        • 10217

        #4
        You mean something like this?

        http://awmstuff.com/go/?trafficcashgold
        http://awmstuff.com/go/?bangbrosonline

        Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

        Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.

        Comment

        • Tempest
          Too lazy to set a custom title
          • May 2004
          • 10217

          #5
          Double post...

          Comment

          • mikeyddddd
            Viva la vulva!
            • Mar 2003
            • 16557

            #6
            Originally posted by Tempest
            You mean something like this?

            http://awmstuff.com/go/?trafficcashgold
            http://awmstuff.com/go/?bangbrosonline

            Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

            Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.
            Exactamundo
            No more changing thousands of pages.

            Comment

            • woj
              <&(©¿©)&>
              • Jul 2002
              • 47880

              #7
              Originally posted by Tempest
              You mean something like this?

              http://awmstuff.com/go/?trafficcashgold
              http://awmstuff.com/go/?bangbrosonline

              Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

              Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.
              and if the sponsor happens to go under, you can redirect all his traffic elsewhere within minutes
              Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
              Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
              Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

              Comment

              • wedouglas
                So Fucking Banned
                • Aug 2004
                • 5921

                #8
                Originally posted by Tempest
                You mean something like this?

                http://awmstuff.com/go/?trafficcashgold
                http://awmstuff.com/go/?bangbrosonline

                Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

                Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.
                Would you mind posting the contents of said file? With just like one example url left in. I am clueless in php.

                Comment

                • Captain Canada
                  Confirmed User
                  • Jun 2002
                  • 469

                  #9
                  You could also put in to each folder a straight index.html page with a redirect such as:

                  <html><head><meta http-equiv="refresh" content="0;URL=http://www.google.com" /></head><body></body></html>

                  Comment

                  • fuzebox
                    making it rain
                    • Oct 2003
                    • 22367

                    #10
                    Originally posted by Tempest
                    You mean something like this?

                    http://awmstuff.com/go/?trafficcashgold
                    http://awmstuff.com/go/?bangbrosonline

                    Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

                    Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.


                    I do the same thing but it's all mysql based... Before I got StatsRemote it was nice to grab a quick summary of all my outclicks for the day...

                    Comment

                    • DamageX
                      Marketing & Strategy
                      • Jun 2001
                      • 14293

                      #11
                      Pay someone to do it.
                      Whitehat is for chumps

                      If you don't do it, somebody else will - true story!

                      Comment

                      • Tempest
                        Too lazy to set a custom title
                        • May 2004
                        • 10217

                        #12
                        Originally posted by fuzebox


                        I do the same thing but it's all mysql based... Before I got StatsRemote it was nice to grab a quick summary of all my outclicks for the day...
                        Yeah.. I'm moving all my links to a mysql database as well... But I don't like relying on it so instead I'll be having it generate my datafiles from that as a source... clicks will be saved in text files and added to the mysql database every few minutes.

                        Comment

                        • Tempest
                          Too lazy to set a custom title
                          • May 2004
                          • 10217

                          #13
                          not sure how this post happened...
                          Last edited by Tempest; 08-24-2006, 11:51 AM.

                          Comment

                          • Tempest
                            Too lazy to set a custom title
                            • May 2004
                            • 10217

                            #14
                            Originally posted by wedouglas
                            Would you mind posting the contents of said file? With just like one example url left in. I am clueless in php.
                            Well mine is a little complicated as I go to random POTD sites etc. if there's an invalid site name and I also insert campaign codes on the fly..

                            but a simple version would be something like this

                            Code:
                            <?php
                            	$q=strtolower(trim($_SERVER["QUERY_STRING"]));
                            	$url["adultpaymaster"]="http://www.adultpaymaster.com/";
                            	$url["nastydollars"]="http://www.nastydollars.com/";
                            	if($url[$q] != ""){
                            		@header("Location: $url[$q]");
                            		exit;
                            	}
                            	@header("Location: http://somedeafulturl.com/");
                            ?>
                            name it index.php.. drop it on some directory like /go2/

                            call them like /go2/?nastydollars

                            Comment

                            • Webby
                              Too lazy to set a custom title
                              • Oct 2002
                              • 14956

                              #15
                              Originally posted by Tempest
                              You mean something like this?

                              http://awmstuff.com/go/?trafficcashgold
                              http://awmstuff.com/go/?bangbrosonline

                              Just a php file that redirects. You can get fancy with counting the clicks, blocking robots etc. as well.

                              Ever since the ARS thing and then HawgsCash, all my links on every site go thru a script like that.. dropping sites/programs and redirecting is fast. i.e. I have 1 set of central datafiles per server so I just change them and every one of my sites on that server is now updated.


                              Same here Tempest - everything is logged on a per server basis and redirected. Another extension to that - tho does need planning and work - is that all "content" re promo is served centrally from each sever to all domains on that server - basically "web blocks"/creatives which can be anything - 1000's of em

                              Advantages being, easy new site development (just write the "shell" content), any sponsor can be removed for all domains in mins - or more added etc.

                              BTW.. Nice constuctive thread this - makes a change from crap
                              XXX TLD's - Another mosquito to swat.

                              Comment

                              • wedouglas
                                So Fucking Banned
                                • Aug 2004
                                • 5921

                                #16
                                Originally posted by Tempest
                                Well mine is a little complicated as I go to random POTD sites etc. if there's an invalid site name and I also insert campaign codes on the fly..

                                but a simple version would be something like this

                                Code:
                                <?php
                                	$q=strtolower(trim($_SERVER["QUERY_STRING"]));
                                	$url["adultpaymaster"]="http://www.adultpaymaster.com/";
                                	$url["nastydollars"]="http://www.nastydollars.com/";
                                	if($url[$q] != ""){
                                		@header("Location: $url[$q]");
                                		exit;
                                	}
                                	@header("Location: http://somedeafulturl.com/");
                                ?>
                                name it index.php.. drop it on some directory like /go2/

                                call them like /go2/?nastydollars
                                Can I use this without disabling the back button? perhaps open in a new window

                                Comment

                                • wedouglas
                                  So Fucking Banned
                                  • Aug 2004
                                  • 5921

                                  #17
                                  Originally posted by wedouglas
                                  Can I use this without disabling the back button? perhaps open in a new window
                                  n/m it works. not sure why back button wasnt working

                                  Comment

                                  Working...