The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Allow hotlink only for some directory

Discussion in 'General Discussion' started by Bluexnet2, Feb 27, 2004.

  1. Bluexnet2

    Bluexnet2 Active Member

    Joined:
    Dec 4, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi all, i have a question about hotlink, i have it active in my site, but want to allow ppl to hotlink some graphics so i add them in a folder, how can i allow that folder to use hotlink and no the other folders and files?

    I hope someone can help me.

    Thank You
     
  2. nybble

    nybble Well-Known Member

    Joined:
    Jan 26, 2004
    Messages:
    223
    Likes Received:
    0
    Trophy Points:
    16
    .htaccess takes effect on the same dir and every dir under it, think about it
     
  3. Dragonmom

    Dragonmom Registered

    Joined:
    Nov 22, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    What nybble means is that you can copy an .htaccess file into each directory you want to protect. Put your accessable directory into your /public_html dir, and leave the .htaccess file out of it. You won't be able put .htaccess into your root or public dir, either. One file will protect the dir it's in and any sub dirs as well.
     
  4. nybble

    nybble Well-Known Member

    Joined:
    Jan 26, 2004
    Messages:
    223
    Likes Received:
    0
    Trophy Points:
    16
  5. Bluexnet2

    Bluexnet2 Active Member

    Joined:
    Dec 4, 2003
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Thank you both :)
     
  6. nybble

    nybble Well-Known Member

    Joined:
    Jan 26, 2004
    Messages:
    223
    Likes Received:
    0
    Trophy Points:
    16
    Very welcome :)
     
Loading...

Share This Page