HTACCESS help please

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alexg
    IL4L.com
    • Aug 2003
    • 11287

    #1

    HTACCESS help please

    I need a htaccess code that blocks hotlinking to images that take more then 10k in size.

    Images smaller then 10k can be hotlinked, but if someone tries to hotlink to a bigger image it will redirect him to the URL that I specify...

    can this be arranged? maybe someone has a similar code premade..I'd appreciate that

    Find fuck buddies in your area!

  • alexg
    IL4L.com
    • Aug 2003
    • 11287

    #2
    Oh and I need a code I can put in the root directory and it will block hotlinking all over the domain. In all directories...

    I don't want a code that I need to put in every dir

    Find fuck buddies in your area!

    Comment

    • polish_aristocrat
      Too lazy to set a custom title
      • Jul 2002
      • 40377

      #3
      u got an innovative sig
      I don't use ICQ anymore.

      Comment

      • alexg
        IL4L.com
        • Aug 2003
        • 11287

        #4
        Originally posted by polish_aristocrat
        u got an innovative sig
        click it

        Find fuck buddies in your area!

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          Originally posted by alexg
          I need a htaccess code that blocks hotlinking to images that take more then 10k in size.

          Images smaller then 10k can be hotlinked, but if someone tries to hotlink to a bigger image it will redirect him to the URL that I specify...

          can this be arranged? maybe someone has a similar code premade..I'd appreciate that
          mod_rewrite doesnt allow you to specify image size but you can use an external program that will

          like whip up something in perl to check the file size and you could execute it from mod_rewrite.
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          • Paul Waters
            Confirmed User
            • Mar 2003
            • 4402

            #6
            You should be able to find what you need on this site:

            http://www.hahahahahahahahahahakit.c...htaccess.shtml

            You want to block all hot linking in an .htaccess file in the root.

            To allow for smaller files, using .htaccess, you must put them in directory, or tree, and allow hotlinking using another .htaccess file.


            Paul

            Comment

            • alexg
              IL4L.com
              • Aug 2003
              • 11287

              #7
              Originally posted by Paul Waters
              You should be able to find what you need on this site:

              http://www.hahahahahahahahahahakit.c...htaccess.shtml

              You want to block all hot linking in an .htaccess file in the root.

              To allow for smaller files, using .htaccess, you must put them in directory, or tree, and allow hotlinking using another .htaccess file.
              sounds like it's more complicated then i thought....
              i'll tell you what i need this for..

              for a domain that i have tgp galleries on, i want to block hotlinking so that russian fucking porn sites won't hotlink my pics..
              i want to allow small ones, because certein tgp's hotlink your thumb for a gallery...thumbs are less then 10k most of the time, and big pics are more then 10k, so i thought about this solution, but if it's too complicated, i'd have to think of something else

              Find fuck buddies in your area!

              Comment

              Working...