ronbo613
Trekkie

Offline
Posts: 14
|
 |
« on: July 22, 2008, 10:01:42 AM » |
|
Howdy-Is there any way to enable hotlinking to a single folder?
|
|
|
|
|
Logged
|
|
|
|
|
MrPhil
|
 |
« Reply #1 on: July 22, 2008, 08:24:00 PM » |
|
What do you mean? Are you trying to prevent others from hotlinking to one of your directories (folders) or the files therein? I think you're misusing the term "hotlinking" -- please explain what you're trying to do.
|
|
|
|
|
Logged
|
|
|
|
ronbo613
Trekkie

Offline
Posts: 14
|
 |
« Reply #2 on: July 24, 2008, 07:41:38 AM » |
|
I want to create a folder I can put some photos into and be able to post them on forums, but I don't want people to be able to link to everything on my site(s). I tried to make a new folder in my main directory with a separate htaccess file, but I couldn't get it to work.
|
|
|
|
|
Logged
|
|
|
|
ronbo613
Trekkie

Offline
Posts: 14
|
 |
« Reply #3 on: July 24, 2008, 07:53:07 AM » |
|
Howdy-On the Hotlink Protection page, when URLs are added to the "Enable Hotlink Protection" box, does that mean that only the URLs listed will be able to link to the sites? I need to have some kind of hotlinking to allow my subdomain to link to files, but I would prefer not to allow anybody to link to my sites, so I'd like some kind of link protection.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
MrPhil
|
 |
« Reply #5 on: July 24, 2008, 07:25:55 PM » |
|
OK, you're misusing the term "hotlinking". Hotlinking is when someone steals your files (usually images) and bandwidth by displaying your images on their site, but you're paying for the hosting and bandwidth. "Hotlinking protection" is putting code in .htaccess to prevent this, by explicitly listing which domains are allowed to use certain filetypes. Obviously, you want your own site(s) to be able to display your images, and you may want selected other sites to display them (e.g., your avatar on Lunarpages). cPanel has a feature to add hotlinking protection to your .htaccess file. By default it protects image files (.jpg, .gif, etc.), but you are free to protect other file types. I'm sure you could set up the RewriteRule to protect all files in one directory if you wanted to. And of course, you could have multiple Hotlink Protection sections to protect different kinds of things, each with its own list of permitted (whitelisted) sites.
|
|
|
|
|
Logged
|
|
|
|
ronbo613
Trekkie

Offline
Posts: 14
|
 |
« Reply #6 on: July 25, 2008, 12:18:06 PM » |
|
Thanks for the information. I'm a little confused over what's going with my subdomain because even though it is on the list on the Hotlink Protection page of cPanel to allow linking, it is not able to display images. When I disable Hotlink Protection, the images are displayed. There is only my main domain and one subdomain, all the URLs are listed on the Hotlink Protection page to allow linking, but only with the Hotlink Protection disabled will images on the subdomain be displayed. I'm not that familiar with htaccess codes, but I guess I'll have to figure it out.
|
|
|
|
|
Logged
|
|
|
|
|
MrPhil
|
 |
« Reply #7 on: July 25, 2008, 07:29:36 PM » |
|
Can you list your primary domain and subdomains and add-on domains, and what you have in your .htaccess file now? If you don't want to show this in public, feel free to PM the information to me. I'll let you know if I see any problems in .htaccess.
|
|
|
|
|
Logged
|
|
|
|
ronbo613
Trekkie

Offline
Posts: 14
|
 |
« Reply #8 on: July 28, 2008, 06:56:40 AM » |
|
Thanks for the offer MrPhil-I'm kind of learning as I go here, let me try and see what I can do and I'll post the htaccess files.
|
|
|
|
|
Logged
|
|
|
|
|