Is anyone here a mod_rewrite expert?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fetishblog
    Confirmed User
    • Sep 2005
    • 5995

    #1

    Is anyone here a mod_rewrite expert?

    I need to stop offsite hotlinking to fullsize images, but allow offsite hotlinking to thumbnails.

    This is the directory tree:

    /users/username/ - full size images in here
    /users/username/thumbnails/ - thumbs in here

    I've got the basic anti hotlinking code, but I'm at a loss for how to allow it in one place, but allow it in another.

    I'm stepping out of the office for about the next 2 hours or so, but I'll be back if someone would like to either do it here, or via ICQ, 1183251. I'd greatly appreciate it. Thanks.

    Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!
  • fetishblog
    Confirmed User
    • Sep 2005
    • 5995

    #2
    Originally posted by fetishblog
    .... but I'm at a loss for how to allow it in one place, but allow it in another.
    That should read: how to allow it in one place, but disallow it in another.

    Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!

    Comment

    • directfiesta
      Too lazy to set a custom title
      • Oct 2002
      • 30196

      #3
      /thumbnails/ is a directory under /username/ .

      you want to protect username, but not /username/thumbnails / ...


      Not sure that can be done, since the htaccess file protects > all under ".

      If you would move /thumbnails/ to another directory, such as:

      /view/thumbnails/ , then you would just protect the other directory, leaving this one hotlinkable...



      Hungry.. going for dinner.
      I know that Asspimple is stoopid ... As he says, it is a FACT !

      But I can't figure out how he can breathe or type , at the same time ....

      Comment

      • duckduckgoose
        Registered User
        • Mar 2006
        • 82

        #4
        i think i have an answer but GFY won't let me post valid .htaccess code because it contains urls; hit me up on ICQ and i'll send the sample over.
        rRhino.com ...social networking for book fans...

        Comment

        • duckduckgoose
          Registered User
          • Mar 2006
          • 82

          #5
          i posted a quick potential solution to this on memfrag.com (just search for "rewrite" and it comes up)
          rRhino.com ...social networking for book fans...

          Comment

          Working...