configuring .htaccess for embedded movies

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • playa
    Confirmed User
    • Feb 2001
    • 6432

    #1

    configuring .htaccess for embedded movies

    been trying to figure this out for the longest,, no one seems to know,,,

    basically i want to embedd a .WMV video on a webpage on a secure members area...

    it seems like the video isn't passing a valid refer and it isn't loading.. and also i can't right click to download,, or click it to play,,

    it gets redirected to the rewrite,,

    this is my content url and all i have configured in my .htaccess is

    RewriteCond %{HTTP_REFERER} !^http://www.domain.net/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://domain.net/.*$ [NC]
    RewriteRule /*$ http://www.redirect.com/ [L,R]


    can someone please help,,

    thanks in advance
  • drunkdollars
    Confirmed User
    • Apr 2002
    • 2734

    #2
    Hard Task..
    You need to use cookies or some other method
    SIGS ARE GAY

    98055668 icq

    Comment

    • playa
      Confirmed User
      • Feb 2001
      • 6432

      #3
      Originally posted by drunkdollars
      Hard Task..
      You need to use cookies or some other method
      how do paysites do it then? i didn't know it was complicated,,, i can't even link the movies for downloads

      Comment

      • Pornwolf
        Drunk and Unruly
        • Jan 2002
        • 22712

        #4
        Ask K-Man. He posted this gallery last night. http://www.xxlscreen.com/hard2107t.htm

        My Windows Media Player is acting up so I can't play any MPEGs by clicking. I tried to download one of these to watch it and I couldn't (and was oh so frustrated! ) I couldn't figure it out from the source code but whatever it is I'd like to know about it so I can use it on my sites.
        .
        .
        .
        Does anyone know how to uninstall Windows Media Player? It is suspiciously absent from the uninstall programs section in the control panel. Maybe I'll just try to re-install over it.
        I've trusted my sites to them for over a decade...

        Webair, bitches.

        Comment

        • priest
          Confirmed User
          • Aug 2002
          • 140

          #5
          What about something like this?

          Add this rule to your .htaccess file in your movie directory:

          RewriteEngine on
          RewriteOptions inherit
          RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*yourdomain.com/ [NC]
          RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
          RewriteRule /*$ http://www.yourdomain.com/ [L,R]

          Or add this one:

          RewriteEngine on
          RewriteOptions inherit
          RewriteCond %{HTTP_REFERER} !^http://yourIPaddress/.*$ [NC]
          RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC]
          RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
          RewriteRule /*$ http://www.yoursite.com [L,R]

          Place the cookie script below between the <head> </head> HTML section of the index.html

          &lt;SCRIPT LANGUAGE="javascript">
          // Calculate the expiration date</font>
          var expires = new Date ();</font>
          expires.setTime(expires.getTime() + 1
          * 60 * 60 * 1000);
          document.cookie = "id=valid; path=/" +
          "; expires=" + expires.toGMTString();
          &lt;/SCRIPT>
          Last edited by priest; 08-27-2002, 06:25 AM.

          Comment

          • boldy
            Macdaddy coder
            • Feb 2002
            • 2806

            #6
            Took me a few days to make them stream from my linux boxes. I wrote a streaming server in Perl ... Stream them to an embedded object. The user cannot download them ..

            i used this emb code :

            http://www.kimholland.com/stream.html
            MacDaddy Coder.

            Comment

            • notjoe
              Confirmed User
              • May 2002
              • 5599

              #7
              Originally posted by boldy
              Took me a few days to make them stream from my linux boxes. I wrote a streaming server in Perl ... Stream them to an embedded object. The user cannot download them ..

              i used this emb code :

              http://www.kimholland.com/stream.html

              There are much much easier shit to do than write streaming servers or having 5-20 lines of mod_rewrite, also, the videos will be cached in the player's memory/temp files and they can simply be renamed.

              Joe

              Comment

              • boldy
                Macdaddy coder
                • Feb 2002
                • 2806

                #8
                yes but i serve 600 meg movies, so i really dont want them to get downloaded if the user only watches for 5 minutes ..
                MacDaddy Coder.

                Comment

                • playa
                  Confirmed User
                  • Feb 2001
                  • 6432

                  #9
                  so its not a matter of configuring the .htaccess

                  Comment

                  Working...