.htaccess - Hotlinking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nick-2-Naughty
    Registered User
    • Nov 2004
    • 3

    #1

    .htaccess - Hotlinking

    Hi There,

    I want to protect my images but the source i found won't work

    this is what i want :

    I want to protect all the files on the subdomain

    Example : http:\\tgp.domain.com

    and all the files in this dir

    Example : http:\\tgp.domain.com\thumbs\

    must be able to link thats for some TGP site's

    who can help me out

    Kind regards,

    Nick
  • fusionx
    Confirmed User
    • Nov 2003
    • 4618

    #2
    put an htaccess file in the root that blocks all hotlinking.

    put an htaccess in the thumbs directory that allows hotlinking.

    the webserver will look backwards up the directory tree until it finds an htaccess file (or none of course). The first one it finds wins.

    Comment

    Working...