.htaccess gurus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • latinasojourn
    Confirmed User
    • Oct 2003
    • 3191

    #1

    .htaccess gurus

    i need a little help creating an .htaccess file that will do the following:

    let's say i have 2 servers, and i want the referring domains of the one server to be able to access some specific html pages, or image or video files on the other server.

    and i want to redirect everyone else who might try to access those pages to a promo page.

    (the application is to use multiple servers to store members only content.)

    and let's say that there might be about 30 domains only that would to be able to access the protected pages, and everyone else would be redirected.

    how would that .htaccess file be written?

    thanks for any help!
  • amateurcanada
    Confirmed User
    • Jul 2001
    • 3766

    #2
    http://www.wiscocomputing.com/articl...g_htaccess.htm Below you can see redirection and referral information, this may accomplish what you seek.

    be our partner - join nichepartners today
    will.assum.producer @ AmateurCanada.com / icq: 30146166 / facebook.com/will.assum / #amateurcanada

    Comment

    • GrouchyAdmin
      Now choke yourself!
      • Apr 2006
      • 12085

      #3
      Carefully.

      Comment

      • StarkReality
        Confirmed User
        • May 2004
        • 4444

        #4
        Originally posted by latinasojourn
        i need a little help creating an .htaccess file that will do the following:

        let's say i have 2 servers, and i want the referring domains of the one server to be able to access some specific html pages, or image or video files on the other server.

        and i want to redirect everyone else who might try to access those pages to a promo page.

        (the application is to use multiple servers to store members only content.)

        and let's say that there might be about 30 domains only that would to be able to access the protected pages, and everyone else would be redirected.

        how would that .htaccess file be written?

        thanks for any help!
        You are asking for spoofers if you protect members pages this way, don't do it !

        Comment

        • Damian_Maxcash
          So Fucking Banned
          • Oct 2002
          • 12745

          #5
          Originally posted by StarkReality
          You are asking for spoofers if you protect members pages this way, don't do it !
          I am no expert on multi server setups - but I agree this sounds a bit dodgy...

          Comment

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

            #6
            follow the force jimmy
            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

            Comment

            • latinasojourn
              Confirmed User
              • Oct 2003
              • 3191

              #7
              Originally posted by StarkReality
              You are asking for spoofers if you protect members pages this way, don't do it !
              yes, i understand.

              the purpose is to create a workaround for a small glitch in antihotlinking script.

              Comment

              • NinjaSteve
                Too lazy to set a custom title
                • Dec 2003
                • 11089

                #8
                How can you block just 1 state in the US?
                ...

                Comment

                • thonglife
                  So Fucking Banned
                  • Oct 2004
                  • 1566

                  #9
                  Originally posted by NinjaSteve
                  How can you block just 1 state in the US?
                  in .htaccess? I've never heard of such a thing. Out of curiousity.. Why?
                  I have heard of using iptables to drop an entire country though, through a script.

                  Comment

                  Working...