some htaccess info for the newbies. Fun stuff.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RedShoe
    赤い靴 call me 202-456-1111
    • Feb 2001
    • 14831

    #1

    some htaccess info for the newbies. Fun stuff.

    Hi.

    I'm sure most of you have htaccess files on your servers for various redirects and image protection. For the newbies this lesson can be a painful one.

    I have a domain that has just a couple of galleries on it. It's one of those sites that I'm "supposed to get to". Anyway, some fucker assholes were hotlinking that gallery. I just now noticed it in my stats.

    First thing up. Toss a generic htaccess into that main directory to prevent them from hotlinking.

    Second thing up, find the most disgusting pic on thie internet and use that as a rewrite rule.

    Here is a basic example of what you new guys and gals should have in your haccess files.


    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://IP/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.IP/.*$ [NC]
    RewriteRule \.(gif|jpg)$ http://www.domain.com/nasty.jpg [R,L]

    it's probably overkill to use the IP as well, but that's just how I was learned.
    All you do is add your domain, and add a disgusting pic.. or even a banner if you want. (always thinkin' of the dollar)

    Just save that to a text file call it htaccess.txt and then upload it to your directories. Then rename it on your server to .htaccess

    Note that you can't server your nasty.jpg from a place where you have antihotlinking. So it's best to have the nasty.jpg in the root.

    I say fuck 'em I go for the gross pic.

    My nasty pic is of a jumper. GROSS!!! They guy is totally mushed up and .. just gross.

    Anyway, fuck the hotlinkers. Have fun. Enjoy.

    ...and if you come to a sex site and see a pic of a jumper with his guts all over the road, just think of me and smile.
    Last edited by RedShoe; 02-04-2005, 09:43 AM.

    SPECIALTY COSTUMES • PROPS • FX
    Superheroes • Monsters • Robots
    PM for details


    For any manufacturing needs. Adult or otherwise.

    aka BonsHigh on Insta
    Bonsai weed plants


  • beemk
    CLICK HERE
    • Jan 2002
    • 20829

    #2
    i wouldnt want to waste my bandwidth on a gross pic. i just redirect them to a sponsor code or something else that will make me money.
    I host with Vacares

    Comment

    • RedShoe
      赤い靴 call me 202-456-1111
      • Feb 2001
      • 14831

      #3
      Originally posted by beemk
      i wouldnt want to waste my bandwidth on a gross pic. i just redirect them to a sponsor code or something else that will make me money.
      I don't think I've ever made a single sale that way. You can track if you redirect to a php. I laugh at the thought of them seeing that pic. That in turn makes me happy, and I increase my own morale that way. And when I'm happy I can work smarter. When I work smarter I earn more. And when I earn more I buy silly little gifts for my roaches.

      SPECIALTY COSTUMES • PROPS • FX
      Superheroes • Monsters • Robots
      PM for details


      For any manufacturing needs. Adult or otherwise.

      aka BonsHigh on Insta
      Bonsai weed plants


      Comment

      • DWB
        Registered User
        • Jul 2003
        • 31779

        #4
        Originally posted by RedShoe
        I don't think I've ever made a single sale that way. You can track if you redirect to a php. I laugh at the thought of them seeing that pic. That in turn makes me happy, and I increase my own morale that way. And when I'm happy I can work smarter. When I work smarter I earn more. And when I earn more I buy silly little gifts for my roaches.

        It's not all about money. That's why I love you brother Redshoe.

        Comment

        • SDSimon
          Confirmed User
          • Aug 2002
          • 140

          #5
          RE: " It's not all about money. That's why I love you brother Redshoe."

          Redshoe is a nice man!

          >>>>Winners "WIN" because they "NEVER GIVE UP!"<<<<

          Comment

          • lokiproductions
            Confirmed User
            • Jan 2005
            • 118

            #6
            Newbie type question.

            Does this then also protect subdomains?

            And for someone posting galleries to TPG's are there instances where hotlinking is required?

            Comment

            • Spunky
              I need a beer
              • Jun 2002
              • 133978

              #7
              Can I see the jumper pic?

              Comment

              • RedShoe
                赤い靴 call me 202-456-1111
                • Feb 2001
                • 14831

                #8
                Thanks DWB. You and I are truly brothers from other muthas.

                Originally posted by lokiproductions
                Newbie type question.

                Does this then also protect subdomains?

                And for someone posting galleries to TPG's are there instances where hotlinking is required?

                htaccess can protect an entire domain, or just a certain folder.

                And as far as I know you should never have to hotlink anything when posting to a TGP. Your gallery should have all the images and thumbs right there in that folder. It gets too messy any other way. As for your recips they are linked from within your own domain, so that shouldn't be a problem.

                However... if for whatever reason you would need to hotlink, or allow yourself to be hotlinked, just add that domain into the htaccess. Just add lines like this.


                RewriteEngine on
                RewriteCond %{HTTP_REFERER} !^$
                RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
                RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]RewriteCond %{HTTP_REFERER} !^http://IP/.*$ [NC]
                RewriteCond %{HTTP_REFERER} !^http://www.IP/.*$ [NC]
                RewriteCond %{HTTP_REFERER} !^http://domain1.com/.*$ [NC]
                RewriteCond %{HTTP_REFERER} !^http://www.domain1.com/.*$
                RewriteCond %{HTTP_REFERER} !^http://domain2.com/.*$ [NC]
                RewriteCond %{HTTP_REFERER} !^http://www.domain2.com/.*$
                RewriteCond %{HTTP_REFERER} !^http://domain3.com/.*$ [NC]
                RewriteCond %{HTTP_REFERER} !^http://www.domain3.com/.*$
                RewriteCond %{HTTP_REFERER} !^http://domain4.com/.*$ [NC]
                RewriteCond %{HTTP_REFERER} !^http://www.domain4.com/.*$
                RewriteRule \.(gif|jpg)$ http://www.domain.com/nasty.jpg [R,L]

                SPECIALTY COSTUMES • PROPS • FX
                Superheroes • Monsters • Robots
                PM for details


                For any manufacturing needs. Adult or otherwise.

                aka BonsHigh on Insta
                Bonsai weed plants


                Comment

                • Spike D
                  Confirmed User
                  • Dec 2004
                  • 600

                  #9
                  Thanks for the info
                  SoloSlutCash
                  email: Admin (at) SoloSlutCash (dot) com

                  Comment

                  • fris
                    I have to go potty
                    • Aug 2002
                    • 55810

                    #10
                    i use antihotlinking.com for movies and jpgs

                    and every thing pretty much
                    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                    My Newest Theme

                    Comment

                    • kuthi123
                      Confirmed User
                      • Jan 2005
                      • 6478

                      #11
                      thanks for your tips

                      Comment

                      • RedShoe
                        赤い靴 call me 202-456-1111
                        • Feb 2001
                        • 14831

                        #12
                        Originally posted by fris
                        i use antihotlinking.com for movies and jpgs

                        and every thing pretty much
                        My jumper pic will definitly fuck you up... just a little. I hope people become physically ill looking at it. I hope the image burns in their heads. I hope some cry. I hope some puke.

                        SPECIALTY COSTUMES • PROPS • FX
                        Superheroes • Monsters • Robots
                        PM for details


                        For any manufacturing needs. Adult or otherwise.

                        aka BonsHigh on Insta
                        Bonsai weed plants


                        Comment

                        • yuvalus
                          Confirmed User
                          • Oct 2003
                          • 1906

                          #13
                          good way to get rid of fusker leachers
                          Mail me: [email protected]

                          Comment

                          • Jey p
                            Confirmed User
                            • Apr 2002
                            • 1810

                            #14
                            Thanks for the tip.
                            I saw that some people hotlinks gallerie's full size pics on boards n things like that...
                            Premium Web Design

                            Comment

                            • jukeboxfrank
                              Confirmed User
                              • Apr 2004
                              • 1207

                              #15
                              How do you handle the people that come to your site but block their referer.
                              Do they get the nasty pic and is that a smart thing?


                              ICQ= 231-182-592

                              Comment

                              • Rui
                                web
                                • Dec 2001
                                • 9533

                                #16
                                Originally posted by RedShoe
                                My jumper pic will definitly fuck you up... just a little. I hope people become physically ill looking at it. I hope the image burns in their heads. I hope some cry. I hope some puke.
                                You are pure evil

                                Comment

                                • beemk
                                  CLICK HERE
                                  • Jan 2002
                                  • 20829

                                  #17
                                  Originally posted by DirtyWhiteBoy
                                  It's not all about money.
                                  i dont know about you, but i'm in this business to make money. not to play pranks on surfers.
                                  I host with Vacares

                                  Comment

                                  Working...