htaccess or whatever...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rod
    Confirmed User
    • Mar 2001
    • 1243

    #1

    htaccess or whatever...

    I need something to protect hotlinkers from hotlinking my videos from my server...

    Anyone knows a good code for that?

    Thanks,
    Steve
    woohoo!
  • amadman
    Confirmed User
    • Nov 2001
    • 738

    #2
    just ad the extention to the rewrite rule you are using for your pic hotlinking.

    For example:

    here is a rewriterule that covers jpg,jpeg,gif and rm files with both case covered.

    RewriteRule .*[Jj][Pp][Ee]*[Gg]$|.*[Gg][Ii][Ff]$|.*[Rr][Mm]$ http://www.yourdomain.com/thieves.htm


    hope that makes sense :o)
    Last edited by amadman; 03-05-2002, 01:05 PM.
    Affordable Quality Niche Content at <a href="http://reyko.com/in.php?ref=amadman">Reyko</a>

    Please submit your free and AVS sites <a href="http://xstash.com/sexpack/submit.html">here</a>

    Comment

    • Rod
      Confirmed User
      • Mar 2001
      • 1243

      #3
      I do not use any htacces for my pics...since I do not make pics galleries or stuff like that.

      I am only in the movies things...

      so can you expalin a bit more?
      woohoo!

      Comment

      • darksoft
        Confirmed User
        • Mar 2001
        • 768

        #4
        Won't work with windows media player. You need to add a piece of javascript to the page that has the links as well as a line of code to the htaccess file. Steve, email me for the code.

        Comment

        • darksoft
          Confirmed User
          • Mar 2001
          • 768

          #5
          crap, email has been disabled...

          webmaster at myhottiez dot com

          Comment

          • Rod
            Confirmed User
            • Mar 2001
            • 1243

            #6
            Originally posted by darksoft
            Won't work with windows media player. You need to add a piece of javascript to the page that has the links as well as a line of code to the htaccess file. Steve, email me for the code.
            So, to protect from hotlinkers, I need to put javascript on my pages?

            Well, the hotlinkers will only have to copy/paste the links....without the javascript, and will be able to hotlink anyway...?

            Am I missing something??
            woohoo!

            Comment

            • ServerGenius
              Confirmed User
              • Feb 2002
              • 9377

              #7
              Here's another for .htaccess file

              RewriteEngine on
              RewriteCond %{HTTP_REFERER} !^$
              RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC]
              RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC]
              RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM) $ http://www.yourdomain.com [R,L]

              DynaMite
              | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

              Comment

              • darksoft
                Confirmed User
                • Mar 2001
                • 768

                #8
                The javascript will set a cookie for them and you can specify how long the cookie lasts. If they don't have the cookie, they don't get access to the movies, so no hotlinking. The other stuff posted here only works with netscape.

                Comment

                • Rod
                  Confirmed User
                  • Mar 2001
                  • 1243

                  #9
                  Originally posted by darksoft
                  The javascript will set a cookie for them and you can specify how long the cookie lasts. If they don't have the cookie, they don't get access to the movies, so no hotlinking. The other stuff posted here only works with netscape.
                  Can you send me that script by e-mail at [email protected] ?

                  Thanks a lot if you can!!
                  woohoo!

                  Comment

                  • ServerGenius
                    Confirmed User
                    • Feb 2002
                    • 9377

                    #10
                    rewrite rules are browser independent they also work for MSIE

                    DynaMite
                    | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

                    Comment

                    • darksoft
                      Confirmed User
                      • Mar 2001
                      • 768

                      #11
                      windows media player does not have a referrer so it will not work.

                      Comment

                      • AdultWire
                        Confirmed User
                        • Feb 2002
                        • 962

                        #12
                        Wow.. okay here's an easier way to write those rules:

                        RewriteCond %{HTTP_REFERER} !^$
                        RewriteCond %{HTTP_REFERER} !^http://www.theadultwire.com.*$ [NC]
                        RewriteRule ^.*\.(gif|jpg|swf|css|png|jpe|jpeg|js)$ http://www.theadultwire.com/adultapp/thumbs/ [NC,R]

                        You don't need to do each capitalization, just put 'NC' in the brackets at the end.
                        SIG TOO BIG! Maximum 120x60 button and no more than 3 text lines of DEFAULT SIZE and COLOR. Unless your sig is for a GFY top banner sponsor, then you may use a 624x80 instead of a 120x60.

                        Comment

                        • ServerGenius
                          Confirmed User
                          • Feb 2002
                          • 9377

                          #13
                          Darksoft you're right I didn't notice that this was for Media Player

                          DynaMite
                          | http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |

                          Comment

                          • darksoft
                            Confirmed User
                            • Mar 2001
                            • 768

                            #14
                            Yeah, since netscape using it's own built-in shit for a lot of things it may never crop up, and since Billy G is such a fuckstick, he had to make it so wmp didn't use a referrer... otherwise this wouldn't be necessary...

                            Comment

                            • jimmyf
                              OU812
                              • Feb 2001
                              • 12651

                              #15
                              Maybe this will work
                              Epic CashEpic Cash works for me
                              Solar Cash Paysite Plugin
                              Gallery of the day freesites,POTD,Gallery generator with free hosting

                              Comment

                              Working...