Need .htaccess help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DirtyProfits
    Confirmed User
    • May 2005
    • 1885

    #1

    Need .htaccess help

    What is the correct code to block a site from embedding and hotlinking your movies? I just found out that the .htaccess code I was using somehow doesn't work.
  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    If you wanted to greedily keep your files for yourself, you should have voted Ron Paul.

    Comment

    • GrouchyAdmin
      Now choke yourself!
      • Apr 2006
      • 12085

      #3
      Damn thing timed out. Oh well. Here.

      Code:
      RewriteEngine on
      RewriteCond %{HTTP_REFERER} !^$
      RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$     [NC]
      RewriteRule .*\.(gif|jpg|jpeg|wmv|mpg)$ - [F,NC]

      Comment

      • DirtyProfits
        Confirmed User
        • May 2005
        • 1885

        #4
        Hm that's exactly what I use, only difference that I only have [F] and not [F,NC]. What does NC mean? Thanks by the way.

        Comment

        • GrouchyAdmin
          Now choke yourself!
          • Apr 2006
          • 12085

          #5
          NC is "No Case", meaning it works for upper, and lowercase. If you named your files '.JPG' with yours, as you describe it, they would not be protected.

          Comment

          • sumphatpimp
            Confirmed User
            • Aug 2002
            • 5235

            #6
            .htaccess can not be used to block movies since there is no referer.
            Google it.

            Comment

            • GrouchyAdmin
              Now choke yourself!
              • Apr 2006
              • 12085

              #7
              Originally posted by sumphatpimp
              .htaccess can not be used to block movies since there is no refferer.
              Google it.
              That generally affects Windows Media Player; and for that, I suggest a passthru script, or using a prerolled protection mechanism that requires a login before you access, such as StrongBox.

              However, he hasn't expliticly stated what/where his content was being stolen.

              Comment

              • DirtyProfits
                Confirmed User
                • May 2005
                • 1885

                #8
                Content hotlinked from movie galleries. I am using a hotlink protection on my other server but on the new one I did not. Well problem solved thus far, blocked the IP of the site. By the way, why did I see the url of the hotlinking sit in my affiliate program ref stats but not on Google Analytics? I mean if my .htaccess did not work with movies how did they get redirected to the sponsor?

                Comment

                • directfiesta
                  Too lazy to set a custom title
                  • Oct 2002
                  • 30147

                  #9
                  Originally posted by GrouchyAdmin

                  However, he hasn't expliticly stated what/where his content was being stolen.
                  Originally posted by DirtyProfits
                  What is the correct code to block a site from embedding and hotlinking your movies? I just found out that the .htaccess code I was using somehow doesn't work.


                  nope, he sure wasn't specific enough ....
                  I know that Asspimple is stoopid ... As he says, it is a FACT !

                  But I can't figure out how he can breathe or type , at the same time ....

                  Comment

                  • GrouchyAdmin
                    Now choke yourself!
                    • Apr 2006
                    • 12085

                    #10
                    Wow, I skimmed a post that didn't earn me any money.

                    How's your ratio for getting new clients from the states, by the way?

                    Comment

                    • DirtyProfits
                      Confirmed User
                      • May 2005
                      • 1885

                      #11
                      Originally posted by GrouchyAdmin
                      Wow, I skimmed a post that didn't earn me any money.

                      How's your ratio for getting new clients from the states, by the way?
                      From the United States? What do you exactly mean, signups?

                      Comment

                      • GrouchyAdmin
                        Now choke yourself!
                        • Apr 2006
                        • 12085

                        #12
                        Originally posted by DirtyProfits
                        From the United States? What do you exactly mean, signups?
                        My reply was to DirectFiesta, actually.

                        He made some rather purile anti-American sentiment threads on nearly a daily basis in the past, so for awhile, I'd follow his posts begging for people to use him as a virtualhost with his prior statements cut-and-pasted where prospective clients could see it.

                        Comment

                        • Net Money
                          Confirmed User
                          • Dec 2007
                          • 539

                          #13
                          The only thing you need to know:

                          http://www.htaccesstools.com/hotlink-protection

                          Comment

                          Working...