Htaccess question, help me out hehe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • A C
    Confirmed User
    • Dec 2002
    • 1637

    #1

    Htaccess question, help me out hehe

    I know there is an htaccess code to redirect hotlinkers to the url of your choice, Ive been reading tutorials on them, and (call me dumb) I cant get the f'ing thing to work.

    Please anyone who knows this code please let me know...
    I just need the following

    If users are requesting from goodurl.com/subdirectory then do shit
    if they are requesting from anywhere else
    redirect them to here

    lol thanks

    AC
    Do you have a "Exit here - if under 18" link on your warningpage? Chances are you are linking to yahoo/google/disney etc. Those days are over, signup at www.warningpages.com to get PAID for this traffic that has been wasted by so many for years! icq#777970
  • Kron
    Confirmed User
    • Jan 2005
    • 1668

    #2
    I am also intrested for this,ent help is welcome
    I dont exchange money!

    Comment

    • psyko514
      See sig. Join Epic Cash.
      • Oct 2002
      • 22366

      #3
      Something like this would work:

      RewriteEngine on
      RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
      RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/hotlink.jpg [R,NC]

      Basically, if any domain other than yours attempts to display an image, it'll be replaced with hotlink.jpg (which can be a ******* pic, for example).

      Bad Girl Bucks
      - 50% Revshare through CCBill.
      Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

      Phoenix Forum Pics | Webmaster Access Montreal pics
      email: psyko514(a)gmail.com | icq: 214-702-014

      Comment

      • Kron
        Confirmed User
        • Jan 2005
        • 1668

        #4
        That is so qick
        Thanx psyko514
        I dont exchange money!

        Comment

        • A C
          Confirmed User
          • Dec 2002
          • 1637

          #5
          Originally posted by psyko514
          Something like this would work:

          RewriteEngine on
          RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
          RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/hotlink.jpg [R,NC]

          Basically, if any domain other than yours attempts to display an image, it'll be replaced with hotlink.jpg (which can be a ******* pic, for example).

          need it to redirect the persons page to page.html not jsut change the image ;)

          AC
          Do you have a "Exit here - if under 18" link on your warningpage? Chances are you are linking to yahoo/google/disney etc. Those days are over, signup at www.warningpages.com to get PAID for this traffic that has been wasted by so many for years! icq#777970

          Comment

          • A C
            Confirmed User
            • Dec 2002
            • 1637

            #6
            bump it up
            Do you have a "Exit here - if under 18" link on your warningpage? Chances are you are linking to yahoo/google/disney etc. Those days are over, signup at www.warningpages.com to get PAID for this traffic that has been wasted by so many for years! icq#777970

            Comment

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

              #7
              REMEMBER !!!!!!!!!!!!!!!!!!!!!!!!!!

              When you are uploading an .htaccess file, it must be done in Ascii mode.

              ;)

              Comment

              • digifan
                The Profiler
                • Oct 2002
                • 14618

                #8
                Originally posted by Antonio
                REMEMBER !!!!!!!!!!!!!!!!!!!!!!!!!!

                When you are uploading an .htaccess file, it must be done in Ascii mode.

                ;)

                [email protected]
                Webair Rocks

                Comment

                • The Sultan Of Smut
                  Confirmed User
                  • Dec 2004
                  • 4325

                  #9
                  Originally posted by psyko514
                  Something like this would work:

                  RewriteEngine on
                  RewriteCond %{HTTP_REFERER} !^http://(www\.)?yourdomain.com(/)?.*$ [NC]
                  RewriteRule .*\.(gif|jpg|jpeg|bmp)$ http://www.yourdomain.com/hotlink.jpg [R,NC]

                  Basically, if any domain other than yours attempts to display an image, it'll be replaced with hotlink.jpg (which can be a ******* pic, for example).
                  I would add a line for the ip address of your server, it's not essential but I do it anyway:

                  RewriteCond %{HTTP_REFERER} !^http://32.332.332.32.*$ [NC]

                  Comment

                  • psyko514
                    See sig. Join Epic Cash.
                    • Oct 2002
                    • 22366

                    #10
                    Originally posted by A C
                    need it to redirect the persons page to page.html not jsut change the image ;)

                    AC

                    I'm not sure that's possible.

                    Bad Girl Bucks
                    - 50% Revshare through CCBill.
                    Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

                    Phoenix Forum Pics | Webmaster Access Montreal pics
                    email: psyko514(a)gmail.com | icq: 214-702-014

                    Comment

                    • MikeXAMO
                      Confirmed User
                      • Mar 2002
                      • 660

                      #11
                      You cant have hotlinkers redirected to a web page. They are requesting an image, they must get an image back or the web browser will not know how to interperet it, and give back a broken image link.

                      What we used to do on our freehost is replace the image with a "Hotlinking disabled" image with a nasty assed image that people dont want to look at.
                      Xamo Entertainment
                      Xamo.com | EZSets.com

                      ICQ: 9439118 MSN: mikeb [at] xamo.com Tollfree: 800-544-XAMO
                      XXX CMS - Designed by Adult Webmasters, for Adult Webmasters.

                      Comment

                      • The Sultan Of Smut
                        Confirmed User
                        • Dec 2004
                        • 4325

                        #12
                        Originally posted by MikeXAMO
                        You cant have hotlinkers redirected to a web page. They are requesting an image, they must get an image back or the web browser will not know how to interperet it, and give back a broken image link.

                        What we used to do on our freehost is replace the image with a "Hotlinking disabled" image with a nasty assed image that people dont want to look at.
                        I replace it with a 1k gif with my domain name. Why not get some free advertising?

                        Comment

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

                          #13
                          replace the hotlinked image with a 3 mil by 3 mil pixels /ok may be a bit smaller ;)/ WHITE jpg or gif. The image's size is tiny and it'll cost you next to nothing in bandwith but it'll slow the hotlinking fucker's page to a crawl ;)

                          Comment

                          • Alexander D Great
                            Confirmed User
                            • Dec 2004
                            • 330

                            #14
                            google it
                            [email protected]

                            Comment

                            Working...