.Htaccess question?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • minimouse
    Confirmed User
    • Jun 2002
    • 1493

    #1

    .Htaccess question?

    Is there a way to prevent hotlink to movie files with htaccess?
    Dead
  • Nbritte
    Confirmed User
    • Sep 2001
    • 689

    #2
    RewriteEngine on
    RewriteOptions inherit
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://*www.yoursite.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://*yoursite.com/.*$ [NC]
    RewriteRule .*[Mm][Pp][Gg]$|.*[Mm][Pp][Ee][Gg]$ http://www.sendthemhere.com

    might work

    Brian

    SexyCityCash gets in Bed with PornoDan

    Comment

    • salsbury
      Confirmed User
      • Feb 2002
      • 1070

      #3
      not really with .htaccess - movie players don't usually use referrers.

      your best bet is to create a system that generates one-time-use/one-IP URLs, or maybe time-limited URLs, then "protect" that generator.

      Comment

      • vending_machine
        Confirmed User
        • Jun 2002
        • 1070

        #4
        I've thought about this before, and the best solution I came up with is something like the following:

        Have an html page which is protected via .htaccess, that html page has an ssi include, the include file and the movie file(s) change names every once in a while (well, the contents of the include file changes, not its name).

        (Hi Salsbury )

        Comment

        • salsbury
          Confirmed User
          • Feb 2002
          • 1070

          #5
          oh great i have another stalker

          Comment

          • vending_machine
            Confirmed User
            • Jun 2002
            • 1070

            #6
            Originally posted by salsbury
            oh great i have another stalker
            I know where you work, muhahahahaha

            Comment

            • Nbritte
              Confirmed User
              • Sep 2001
              • 689

              #7
              a cgi script to redirect to the mpeg url might work also


              Brian

              SexyCityCash gets in Bed with PornoDan

              Comment

              Working...