block hotlinking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bringer
    i have man boobies
    • Jul 2003
    • 13082

    #1

    block hotlinking

    ive tried all the examples i could find on making the .htaccess and when i do as stated in the examples and put in my domain and put the file on my server, all the files within that folder i place the .htaccess file wont show even if linked on my site. anyone know what the problem is and how i can fix this?
    333-765-551
  • LiveDose
    Show Yer Tits!
    • Feb 2002
    • 25792

    #2
    post what you are doing.

    Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal

    Comment

    • bringer
      i have man boobies
      • Jul 2003
      • 13082

      #3
      now that ive enabled rewrite the images show even if hotlinked from other sites

      .htaccess

      RewriteEngine on
      RewriteCond %{HTTP_REFERER}!^http://elite-galleries.com.*$ [NC]
      RewriteCond %{HTTP_REFERER}!^http://www.elite-galleries.com.*$ [NC]
      RewriteRule .*.(gif¦GIF¦jpg¦JPG)$ - [F]

      do i need to add anything in the httpd.conf?
      Last edited by bringer; 03-26-2004, 01:08 AM.
      333-765-551

      Comment

      • bringer
        i have man boobies
        • Jul 2003
        • 13082

        #4
        anyone know?
        333-765-551

        Comment

        • johnbosh
          Confirmed User
          • Aug 2002
          • 8965

          #5
          I once uplaoded an .httaccess fiel and my site wasnt able to laod

          Comment

          • LiveDose
            Show Yer Tits!
            • Feb 2002
            • 25792

            #6
            RewriteEngine on
            RewriteOptions inherit
            RewriteCond %{HTTP_REFERER} !^$
            RewriteCond %{HTTP_REFERER} !^.*yoursite.com.*$ [NC]
            RewriteCond %{HTTP_REFERER} !^.*your site ip#.*$ [NC]
            RewriteRule .*[Jj][Pp][Ee]*[Gg]$|.*[Gg][Ii][Ff]$ hotlink.gif




            try this.

            Scammer Alert: acer19 acer [email protected] [email protected] Money stolen using PayPal

            Comment

            • SGS
              Confirmed User
              • Dec 2002
              • 5176

              #7
              This will help you:

              http://www.htmlbasix.com/disablehotlinking.shtml
              See sig...

              Comment

              • johnbosh
                Confirmed User
                • Aug 2002
                • 8965

                #8
                Originally posted by SGS
                This will help you:

                http://www.htmlbasix.com/disablehotlinking.shtml
                niceq

                Comment

                • Lycanthrope
                  Confirmed User
                  • Jan 2004
                  • 4517

                  #9
                  add your IPs and port 80... hell just let me copy a recent one:

                  RewriteEngine on
                  RewriteCond %{HTTP_REFERER} !^$
                  RewriteCond %{HTTP_REFERER} !^http://domain.com.*$ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://www.domain.com.*$ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://domain.com:80.*$ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://www.doman.com:80.*$ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://xx.xxx.xx.xx.*$ [NC]
                  RewriteCond %{HTTP_REFERER} !^http://xx.xxx.xx.xx:80.*$ [NC]
                  RewriteRule .*[Jj][Pp][Gg]$|.*[Jj][Pp][Ee][Gg]$|.*[Gg][Ii][Ff]$ http://www.domain.com/hotlink.html

                  Then, create a seperate file called ^ hotlink.html and in that file create a simple hyperlink "click here to continue" going nowhere... this will probably not ever be seen. Or, to catch those that think they are crafty by C&Ping... link it to a dialer and use a mouseover pointing to your root index file.

                  This hotlink.html call will elminate filling up your error log w/ useless info.

                  Comment

                  • mryellow
                    Confirmed User
                    • May 2001
                    • 934

                    #10
                    http://www.webpimps.com/scripts/htaccess/

                    Few tricks and tips.

                    -Ben
                    Cyberwurx Hosting
                    After trying 5 different hosts, I found the best.
                    Since 1997 I've had 2 hours of downtime.
                    Fast support, great techs, no hype, no gimmicks.

                    <- I in no way endorse whatever just got stuck on the left of my post.

                    Comment

                    • Lycanthrope
                      Confirmed User
                      • Jan 2004
                      • 4517

                      #11
                      Then, create a seperate file called ^ hotlink.html and in that file create a simple hyperlink "click here to continue" going nowhere... this will probably not ever be seen. Or, to catch those that think they are crafty by C&Ping... link it to a dialer and use a mouseover pointing to your root index file.

                      This hotlink.html call will elminate filling up your error log w/ useless info.
                      or you could redirect it to a "stolen from" type image, but if you have a lot of attempts, it could eat a small amount of bandwith.

                      I don't remember where I got this from, but the credit is theirs , however the linking to a dialer idea was mine due to all the leech forum traffic I was getting

                      Comment

                      • Lycanthrope
                        Confirmed User
                        • Jan 2004
                        • 4517

                        #12
                        Originally posted by mryellow
                        http://www.webpimps.com/scripts/htaccess/

                        Few tricks and tips.

                        -Ben
                        Damn, that's where I got it from! Thanks Ben.

                        Comment

                        Working...