.htaccess with Windows Media Player?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Timothy
    Confirmed User
    • Aug 2001
    • 153

    #1

    .htaccess with Windows Media Player?

    I just notice that my Windows Media Player doesn't send out a referer and .htaccess considers its a hotlinkers and redirect 'em! How can i prevent this?
  • Timothy
    Confirmed User
    • Aug 2001
    • 153

    #2
    Also is there many surfer uses Windows Media Player as theirdefault mpeg player?

    Comment

    • ProgGod
      Confirmed User
      • Nov 2001
      • 155

      #3
      you can't make media player send a refer, so you would have to figure out a work around, we did
      Premium Tier1 Hosting/bandwidth $65/megabit: $.20/gig
      Way2Fast Hosting

      ICQ: 69658209, AIM: ProgGod123, Email: [email protected]

      Comment

      • shunga
        Confirmed User
        • Apr 2001
        • 994

        #4
        You can use cookies in combination with your .htaccess file.
        Clockwork Cash - ICQ: 355-26-288 / Email: admin AT clockworkcash DOT com
        Asian Paysites : Exclusive Content : NATS or CCBill
        Thai Cuties : Shave Asians : JAVondemand

        Comment

        • RK
          Confirmed User
          • Aug 2001
          • 868

          #5
          Originally posted by ProgGod:
          you can't make media player send a refer, so you would have to figure out a work around, we did

          Well, there are two simple ways.
          1) Allow acess to clients with no referer
          2) Allow access from windows media player based on the user agent


          ------------------
          Create Your Own Hosting Plan!
          Pay-As-You-Go Hosting FREE Trial!
          Limited Time Specials
          EnergyHosting - Energizing your business
          Does anyone look down here?

          Comment

          • BV
            wtf
            • Sep 2001
            • 10914

            #6
            uh can you post what your .htaccess file looks like so we can see? (concerning the user agent work around"

            tia,
            BV

            Comment

            • Timothy
              Confirmed User
              • Aug 2001
              • 153

              #7
              Hey thanks Shunga. I got it.


              =========================
              AuthGroupFile /dev/null
              RewriteEngine On
              RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain.com/.* [NC]
              RewriteCond %{HTTP_REFERER} !^http://111.222.333.444/.* [NC]
              RewriteCond %{HTTP_COOKIE} !(^|(.+ *)id=valid(;. *|$)
              RewriteRule /* http://www.redirect-domain.com/ [R,L]
              =============================

              And insert this code in html page, between <head></head>

              =============================
              <SCRIPT LANGUAGE="javascript">
              // Calculate the expiration date
              var expires = new Date ();
              expires.setTime(expires.getTime() + 6 * 60 * 60 * 1000);
              document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();
              </SCRIPT>
              =============================

              Comment

              • cck
                Confirmed User
                • Jun 2001
                • 244

                #8
                Now you have more big plomblem than .htaccess , i hope it will better my best friend
                Cutecookie
                April Cck Butter
                #64789135

                Topbucks.com My Best sponsor
                X-clips.com Always welcome for your traffic trade

                Comment

                • Fugly
                  Registered User
                  • Sep 2001
                  • 83

                  #9
                  That solves it if you're only protecting that directory by checking the referrer, but what if you want to put the .avi and other media files under your main MEMBERS directory, which also has to check your .htpasswd file?
                  www.fugly.com

                  Comment

                  Working...