Hotlinking Punishment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mojo Rizin
    Confirmed User
    • Dec 2002
    • 1089

    #1

    Hotlinking Punishment

    Some nice code from a good friend of mine.

    .htaccess:
    RewriteEngine on
    RewriteRule ^(.*)\.gif$ /punisher.php?file=$1.gif [L]

    punisher.php:
    ?
    $localsite = "yoursitename.com";
    $ref = getenv("HTTP_REFERER");

    if ($ref != "" & !preg_match("/$localsite/i", $ref)) {
    header("HTTP/1.0 302");
    header("Location: $ref");
    }
    else {
    /* This doesn't work for some reason */
    header("Content-Type: image/gif");
    @readfile("$file");
    }
    ?>

    What this will do is automatically img src a hotlinkers entire site. Obviously you need to add < before the first ? mark

    Enjoy..

    Start Making Reel Profits Today!

    VOIP Technology Is NOW
  • MichaelP
    Registered User
    • Aug 2003
    • 7123

    #2
    Thanks we'll try that

    Comment

    • hova
      Traffillionaire
      • Jan 2002
      • 22430

      #3
      sweeeeeeet
      http://traffillions.com/

      Sign up and get lifetime revshare on your traffic

      Comment

      • Roger
        Confirmed User
        • Jul 2003
        • 3181

        #4
        hehe nice but it is illegal to do that though

        Comment

        • Mojo Rizin
          Confirmed User
          • Dec 2002
          • 1089

          #5
          When you test the code, it does not appear to work.. funny thing is keep checking the image source properties

          Start Making Reel Profits Today!

          VOIP Technology Is NOW

          Comment

          • Mojo Rizin
            Confirmed User
            • Dec 2002
            • 1089

            #6
            Originally posted by Roger
            hehe nice but it is illegal to do that though
            A hotlinker has more rights then the server owner?

            Definately a backwards society

            Start Making Reel Profits Today!

            VOIP Technology Is NOW

            Comment

            • XxXotic
              Confirmed User
              • Jun 2002
              • 8500

              #7
              Originally posted by Roger
              hehe nice but it is illegal to do that though
              oh but it's legal for them to hotlink you to start with right? What? the site you img src is gonna report you to authorities for what? doing to them what they're doing to you?
              Oxeo - Serious Hosting For Serious Webmasters. iCQ:135.887013

              Comment

              • Mojo Rizin
                Confirmed User
                • Dec 2002
                • 1089

                #8
                Originally posted by XxXotic
                oh but it's legal for them to hotlink you to start with right? What? the site you img src is gonna report you to authorities for what? doing to them what they're doing to you?
                Exactly..

                Start Making Reel Profits Today!

                VOIP Technology Is NOW

                Comment

                • Roger
                  Confirmed User
                  • Jul 2003
                  • 3181

                  #9
                  Originally posted by Mojo Rizin


                  A hotlinker has more rights then the server owner?

                  Definately a backwards society
                  Well we don't live in a society that allows us to do ourselves justice. The cops and the courts are here for that.

                  Technically, yeah he can sue you.

                  Comment

                  • Mojo Rizin
                    Confirmed User
                    • Dec 2002
                    • 1089

                    #10
                    Originally posted by Roger


                    Well we don't live in a society that allows us to do ourselves justice. The cops and the courts are here for that.

                    Technically, yeah he can sue you.
                    I would love to see a hotlinker take someone to court.. lol

                    Start Making Reel Profits Today!

                    VOIP Technology Is NOW

                    Comment

                    • SoundMan
                      So Fucking Banned
                      • Nov 2003
                      • 3471

                      #11
                      just replace the hotmilnk image with somthing creative!

                      Comment

                      • Project-Shadow
                        Confirmed User
                        • Feb 2003
                        • 7340

                        #12
                        .. hmmm

                        RewriteRule ^(.*)\.gif$ /punisher.php?file=$1.gif [L]

                        That bit is the only bit that I find a bit wrong, what if someone is hotlinking say x.com/images/x.jpg

                        Would it not try to access x.com/images/punisher.php?

                        Correct me if i'm wrong it looks like a great script and I can't programme for shit just trying to clear this up

                        Comment

                        • Mojo Rizin
                          Confirmed User
                          • Dec 2002
                          • 1089

                          #13
                          Originally posted by Project-Shadow
                          .. hmmm

                          RewriteRule ^(.*)\.gif$ /punisher.php?file=$1.gif [L]

                          That bit is the only bit that I find a bit wrong, what if someone is hotlinking say x.com/images/x.jpg

                          Would it not try to access x.com/images/punisher.php?

                          Correct me if i'm wrong it looks like a great script and I can't programme for shit just trying to clear this up
                          You obviously can customize as needed

                          Start Making Reel Profits Today!

                          VOIP Technology Is NOW

                          Comment

                          • JDog
                            Confirmed User
                            • Feb 2003
                            • 7453

                            #14
                            But that doesn't work with Mozilla! Mozilla can still see hotlinked images!

                            jDoG
                            NSCash now powering ReelProfits.com
                            ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
                            PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
                            NOW OFFERING OVER 60 SITES
                            CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

                            Comment

                            • Mojo Rizin
                              Confirmed User
                              • Dec 2002
                              • 1089

                              #15
                              Originally posted by JDog
                              But that doesn't work with Mozilla! Mozilla can still see hotlinked images!

                              jDoG
                              You look at the image properties?

                              Start Making Reel Profits Today!

                              VOIP Technology Is NOW

                              Comment

                              • JDog
                                Confirmed User
                                • Feb 2003
                                • 7453

                                #16
                                It does work with people using IE, I'm not able to load the image on www.jdogsbitches.com from the other domain gallys.ezfreeporn.net but in Mozilla it will allow me to do it!

                                This is the hard part of referrer based hotlink protection! And that is what the hard part of hotlinking movies is, that WMP opens them with no referer at all! Just my But it is good code for any of you out there!

                                jDoG
                                NSCash now powering ReelProfits.com
                                ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
                                PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
                                NOW OFFERING OVER 60 SITES
                                CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

                                Comment

                                • JDog
                                  Confirmed User
                                  • Feb 2003
                                  • 7453

                                  #17
                                  Originally posted by Mojo Rizin


                                  You look at the image properties?
                                  No, I know it works for IE, but every browser carries referer's differently!

                                  jDoG
                                  NSCash now powering ReelProfits.com
                                  ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
                                  PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
                                  NOW OFFERING OVER 60 SITES
                                  CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

                                  Comment

                                  • Mojo Rizin
                                    Confirmed User
                                    • Dec 2002
                                    • 1089

                                    #18
                                    Originally posted by JDog


                                    No, I know it works for IE, but every browser carries referer's differently!

                                    jDoG
                                    Let me look at what is wrong here, becasue I had it working fine with zilla and IE

                                    Start Making Reel Profits Today!

                                    VOIP Technology Is NOW

                                    Comment

                                    • JDog
                                      Confirmed User
                                      • Feb 2003
                                      • 7453

                                      #19
                                      Originally posted by Mojo Rizin


                                      Let me look at what is wrong here, becasue I had it working fine with zilla and IE
                                      Referer based is totally weird but it does work with zilla for some things! Like fusker it works!

                                      jDoG
                                      NSCash now powering ReelProfits.com
                                      ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
                                      PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
                                      NOW OFFERING OVER 60 SITES
                                      CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)

                                      Comment

                                      • VeriSexy
                                        Join The Royal Family
                                        • Apr 2002
                                        • 25463

                                        #20
                                        Don't do anything illegal, just redirect his hotlinking traffic to your sponsor. Much more productive

                                        See Sig
                                        Looking for a KICK ASS TEEN SPONSOR? Check out ROYAL CASH - THE KING OF TEEN!
                                        Incredible webmaster tools FHGs, Morphing Blog and RSS Feeds, Embedded FLV & WMV Videos
                                        .
                                        With TOP RATIO Sites like


                                        ATMovs.com | iTeenVideo.com |
                                        TeenSexMovs.com | TeenSexMania.com


                                        Comment

                                        • hypnos
                                          Registered User
                                          • Aug 2001
                                          • 6

                                          #21
                                          That is a dangerous piece of code. What if I request:

                                          http://hostname/punisher.php?file=/etc/passwd

                                          You guessed it! I can see all the valid users on your system. There are many other files I can see also.

                                          Please don't use this code!!!

                                          You should sanitize the vars before using them, or else you might get hacked

                                          If I hadn't seen the code, it wouldn't be as easy to snoop your system. But smart hackers/crackers will test a bunch of stuff to see what works.

                                          I hope everyone understands how serious this can be!

                                          I'd edit this post Mojo and remove the code before others use it.

                                          Comment

                                          Working...