How to prevent hotlinking using htaccess??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tranza
    ICQ: 197-556-237
    • Jun 2003
    • 57559

    #1

    How to prevent hotlinking using htaccess??

    Is there anyway of preventing someone from hotlinking pictures using htaccess?

    HELP! My BW bill is huge this month so far...
    I'm just a newbie.
  • Manowar
    jellyfish  
    • Dec 2003
    • 71528

    #2
    http://altlab.com/hotlinking.html

    http://www.unixcities.com/apache/index1.html

    Comment

    • Jon2
      So Fucking Banned
      • Aug 2001
      • 2875

      #3
      http://www.htmlbasix.com/disablehotlinking.shtml

      A generator

      Jon

      Comment

      • Dalai lama
        Strength and Honor
        • Jul 2004
        • 16540

        #4
        thanks for those links.

        A program you can trust.
        Gallerybooster Run multiply TGPs of 1 script

        Comment

        • Antonio
          Too lazy to set a custom title
          • Oct 2001
          • 14136

          #5
          http://www.htmlite.com/HTA013.php

          http://www.devpapers.com/article/242

          http://www.javascriptkit.com/howto/htaccess10.shtml

          google is your friend

          Comment

          • Jon2
            So Fucking Banned
            • Aug 2001
            • 2875

            #6
            What is google?

            Jon

            Comment

            • MandyBlake
              The one and only!
              • Nov 2002
              • 17761

              #7
              i had the exact same question months ago and this board helped me out.
              good luck.
              big bw bills suck.
              Mandy's Playhouse
              Her First Fat Girl
              If you're interested in promoting my sites, ICQ me! 178411921

              Comment

              • tranza
                ICQ: 197-556-237
                • Jun 2003
                • 57559

                #8
                Ok, thanks!

                But what about people that type in the browser the images URL directly. Can I redirect them?
                I'm just a newbie.

                Comment

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

                  #9
                  its only a bandwidth bill, pay it and stop crying ;)
                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                  Totally Free Templates

                  Comment

                  • vapewiz
                    Confirmed User
                    • Nov 2002
                    • 1530

                    #10
                    It blows my mind that someone that has made 8k posts here does not know how to use htaccess to stop hotlinking. Even the surfers that post here would know how to search google to find out how to prevent it.

                    Comment

                    • jimmyf
                      OU812
                      • Feb 2001
                      • 12651

                      #11
                      Originally posted by cutetwink
                      It blows my mind that someone that has made 8k posts here does not know how to use htaccess to stop hotlinking. Even the surfers that post here would know how to search google to find out how to prevent it.
                      I know
                      Epic CashEpic Cash works for me
                      Solar Cash Paysite Plugin
                      Gallery of the day freesites,POTD,Gallery generator with free hosting

                      Comment

                      • kenny
                        Confirmed User
                        • Mar 2002
                        • 7245

                        #12
                        I wish .htaccess would work for movies.
                        7

                        Comment

                        • jimmyf
                          OU812
                          • Feb 2001
                          • 12651

                          #13
                          Originally posted by tranza
                          Ok, thanks!

                          But what about people that type in the browser the images URL directly. Can I redirect them?
                          set up your .htaccess and find out







                          yes you can
                          Last edited by jimmyf; 01-09-2005, 06:54 AM.
                          Epic CashEpic Cash works for me
                          Solar Cash Paysite Plugin
                          Gallery of the day freesites,POTD,Gallery generator with free hosting

                          Comment

                          • Antonio
                            Too lazy to set a custom title
                            • Oct 2001
                            • 14136

                            #14
                            I'm not sure if you're fucking with us or you being serious but I'll bite. Doesn't matter if they type the url directly, if you set up .htaccess to redirect to your main page it will redirect them, e.g. a guy types:

                            http://www.tranza.com/somedir/someimage.jpg

                            he'll be redirected to

                            http://www.tranza.com/

                            Comment

                            • vapewiz
                              Confirmed User
                              • Nov 2002
                              • 1530

                              #15
                              Originally posted by kenny
                              I wish .htaccess would work for movies.
                              It can use this in htaccess

                              Code:
                              RewriteEngine On
                              RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*domain.com.*$ [NC]
                              RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$)
                              RewriteRule ^.*\.wmv.*$ http://domain.com/hotlink.htm [R,L]
                              and put this javascript on the page with the movies

                              Code:
                              <script language='javascript' type='text/javascript'>
                              <!--
                              
                              //hotlink protection
                              var expires = new Date ();
                              expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000); 
                              document.cookie = "id=valid; path=/" + "; expires=" + expires.toGMTString();
                              //hotlink protection 
                              -->
                              </script>

                              Comment

                              • kenny
                                Confirmed User
                                • Mar 2002
                                • 7245

                                #16
                                Originally posted by Antonio
                                I'm not sure if you're fucking with us or you being serious but I'll bite. Doesn't matter if they type the url directly, if you set up .htaccess to redirect to your main page it will redirect them, e.g. a guy types:

                                http://www.tranza.com/somedir/someimage.jpg

                                he'll be redirected to

                                http://www.tranza.com/

                                You can do it that way or use a custom image instead.
                                7

                                Comment

                                • chemicaleyes
                                  UNSTOPPABLE
                                  • Aug 2003
                                  • 11569

                                  #17
                                  http://www.eadultindustry.com/tools/...n-checker.html
                                  No way as way, No limitation as limitation. AmeriNOC formally PhatServers

                                  Comment

                                  • darksoft
                                    Confirmed User
                                    • Mar 2001
                                    • 768

                                    #18
                                    Originally posted by kenny
                                    You can do it that way or use a custom image instead.
                                    Or you can be smart and send them somewhere else instead of continually wasting bandwidth on leechers. But then that wouldn't be cool.

                                    Comment

                                    Working...